using System;
using System.Data;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using C1.Win.C1Input;
using PCSComUtils.PCSExc;
using PCSUtils.Utils;
using PCSUtils.Log;
using PCSUtils.MasterSetup;
using PCSComUtils.Common;
using PCSComUtils.MasterSetup.DS;
using PCSComUtils.Common.BO;
using PCSComMaterials.Plan.BO;
using PCSComMaterials.Plan.DS;
using C1.Win.C1TrueDBGrid;
namespace PCSMaterials.Mps
{
	/// <summary>
	/// Summary description for MPSCycleOption.
	/// </summary>
	public class MPSCycleOption : System.Windows.Forms.Form
	{
		private C1.Win.C1TrueDBGrid.C1TrueDBGrid dgrdData;
		private System.Windows.Forms.Label lblCycle;
		private System.Windows.Forms.Label lblCycleDesc;
		private System.Windows.Forms.Label lblMPSGenDate;
		private System.Windows.Forms.Button btnEdit;
		private System.Windows.Forms.Button btnDelete;
		private System.Windows.Forms.Button btnSave;
		private System.Windows.Forms.Button btnAdd;
		private System.Windows.Forms.Button btnClose;
		private System.Windows.Forms.Button btnHelp;
		private System.Windows.Forms.Button btnPrint;
		private C1.Win.C1List.C1Combo cboCCN;
		private System.Windows.Forms.Label lblCCN;
		private System.Windows.Forms.TextBox txtCycle;
		private System.Windows.Forms.TextBox txtCycleDecription;
		private System.Windows.Forms.Button btnCycleSearch;
		private DataSet dstGridData;
		private DataTable dtbGridLayOut;
		private DateTime dtmDateOnly;
		private DateTime dtmSpecialDate = new DateTime(1899,12,30, 0,0,0);
		private const string MASTERLOCATIONCODE = "MasterLocationCode";
		const string THIS = "PCSMaterials.Mps.MPSCycleOption";
		EnumAction formMode;
		UtilsBO boUtil = new UtilsBO();
		private bool blnHasError = false;
		private int pintCycleOptionMasterID;
		private C1.Win.C1Input.C1DateEdit dtmToDate;
		private System.Windows.Forms.Label lblFromDate;
		private System.Windows.Forms.Label lblToDate;
		private C1.Win.C1Input.C1DateEdit dtmFromDate;
		private System.Windows.Forms.Label lblPlanHorizon;
		private C1.Win.C1Input.C1NumericEdit txtPlanHorizon;
		private C1.Win.C1Input.C1DateEdit txtGenDateTime;
		private System.Windows.Forms.Label lblGroupBy;
		private System.Windows.Forms.ComboBox cboGroupBy;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public MPSCycleOption()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		public MPSCycleOption(int pintMPSCycleOptionMasterID)
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
			this.pintCycleOptionMasterID = pintMPSCycleOptionMasterID;
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MPSCycleOption));
			this.dgrdData = new C1.Win.C1TrueDBGrid.C1TrueDBGrid();
			this.lblCycle = new System.Windows.Forms.Label();
			this.lblFromDate = new System.Windows.Forms.Label();
			this.lblCycleDesc = new System.Windows.Forms.Label();
			this.txtCycleDecription = new System.Windows.Forms.TextBox();
			this.lblMPSGenDate = new System.Windows.Forms.Label();
			this.lblToDate = new System.Windows.Forms.Label();
			this.btnEdit = new System.Windows.Forms.Button();
			this.btnDelete = new System.Windows.Forms.Button();
			this.btnSave = new System.Windows.Forms.Button();
			this.btnAdd = new System.Windows.Forms.Button();
			this.btnClose = new System.Windows.Forms.Button();
			this.btnHelp = new System.Windows.Forms.Button();
			this.btnPrint = new System.Windows.Forms.Button();
			this.cboCCN = new C1.Win.C1List.C1Combo();
			this.lblCCN = new System.Windows.Forms.Label();
			this.dtmFromDate = new C1.Win.C1Input.C1DateEdit();
			this.btnCycleSearch = new System.Windows.Forms.Button();
			this.txtCycle = new System.Windows.Forms.TextBox();
			this.dtmToDate = new C1.Win.C1Input.C1DateEdit();
			this.lblPlanHorizon = new System.Windows.Forms.Label();
			this.txtPlanHorizon = new C1.Win.C1Input.C1NumericEdit();
			this.txtGenDateTime = new C1.Win.C1Input.C1DateEdit();
			this.lblGroupBy = new System.Windows.Forms.Label();
			this.cboGroupBy = new System.Windows.Forms.ComboBox();
			((System.ComponentModel.ISupportInitialize)(this.dgrdData)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.cboCCN)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmFromDate)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmToDate)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtPlanHorizon)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.txtGenDateTime)).BeginInit();
			this.SuspendLayout();
			// 
			// dgrdData
			// 
			this.dgrdData.AccessibleDescription = resources.GetString("dgrdData.AccessibleDescription");
			this.dgrdData.AccessibleName = resources.GetString("dgrdData.AccessibleName");
			this.dgrdData.AllowAddNew = ((bool)(resources.GetObject("dgrdData.AllowAddNew")));
			this.dgrdData.AllowArrows = ((bool)(resources.GetObject("dgrdData.AllowArrows")));
			this.dgrdData.AllowColMove = ((bool)(resources.GetObject("dgrdData.AllowColMove")));
			this.dgrdData.AllowColSelect = ((bool)(resources.GetObject("dgrdData.AllowColSelect")));
			this.dgrdData.AllowDelete = ((bool)(resources.GetObject("dgrdData.AllowDelete")));
			this.dgrdData.AllowDrag = ((bool)(resources.GetObject("dgrdData.AllowDrag")));
			this.dgrdData.AllowFilter = ((bool)(resources.GetObject("dgrdData.AllowFilter")));
			this.dgrdData.AllowHorizontalSplit = ((bool)(resources.GetObject("dgrdData.AllowHorizontalSplit")));
			this.dgrdData.AllowRowSelect = ((bool)(resources.GetObject("dgrdData.AllowRowSelect")));
			this.dgrdData.AllowSort = ((bool)(resources.GetObject("dgrdData.AllowSort")));
			this.dgrdData.AllowUpdate = ((bool)(resources.GetObject("dgrdData.AllowUpdate")));
			this.dgrdData.AllowUpdateOnBlur = ((bool)(resources.GetObject("dgrdData.AllowUpdateOnBlur")));
			this.dgrdData.AllowVerticalSplit = ((bool)(resources.GetObject("dgrdData.AllowVerticalSplit")));
			this.dgrdData.AlternatingRows = ((bool)(resources.GetObject("dgrdData.AlternatingRows")));
			this.dgrdData.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dgrdData.Anchor")));
			this.dgrdData.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dgrdData.BackgroundImage")));
			this.dgrdData.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dgrdData.BorderStyle")));
			this.dgrdData.Caption = resources.GetString("dgrdData.Caption");
			this.dgrdData.CaptionHeight = ((int)(resources.GetObject("dgrdData.CaptionHeight")));
			this.dgrdData.CellTipsDelay = ((int)(resources.GetObject("dgrdData.CellTipsDelay")));
			this.dgrdData.CellTipsWidth = ((int)(resources.GetObject("dgrdData.CellTipsWidth")));
			this.dgrdData.ChildGrid = ((C1.Win.C1TrueDBGrid.C1TrueDBGrid)(resources.GetObject("dgrdData.ChildGrid")));
			this.dgrdData.CollapseColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.CollapseColor")));
			this.dgrdData.ColumnFooters = ((bool)(resources.GetObject("dgrdData.ColumnFooters")));
			this.dgrdData.ColumnHeaders = ((bool)(resources.GetObject("dgrdData.ColumnHeaders")));
			this.dgrdData.DefColWidth = ((int)(resources.GetObject("dgrdData.DefColWidth")));
			this.dgrdData.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dgrdData.Dock")));
			this.dgrdData.EditDropDown = ((bool)(resources.GetObject("dgrdData.EditDropDown")));
			this.dgrdData.EmptyRows = ((bool)(resources.GetObject("dgrdData.EmptyRows")));
			this.dgrdData.Enabled = ((bool)(resources.GetObject("dgrdData.Enabled")));
			this.dgrdData.ExpandColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.ExpandColor")));
			this.dgrdData.ExposeCellMode = ((C1.Win.C1TrueDBGrid.ExposeCellModeEnum)(resources.GetObject("dgrdData.ExposeCellMode")));
			this.dgrdData.ExtendRightColumn = ((bool)(resources.GetObject("dgrdData.ExtendRightColumn")));
			this.dgrdData.FetchRowStyles = ((bool)(resources.GetObject("dgrdData.FetchRowStyles")));
			this.dgrdData.FilterBar = ((bool)(resources.GetObject("dgrdData.FilterBar")));
			this.dgrdData.FlatStyle = ((C1.Win.C1TrueDBGrid.FlatModeEnum)(resources.GetObject("dgrdData.FlatStyle")));
			this.dgrdData.Font = ((System.Drawing.Font)(resources.GetObject("dgrdData.Font")));
			this.dgrdData.GroupByAreaVisible = ((bool)(resources.GetObject("dgrdData.GroupByAreaVisible")));
			this.dgrdData.GroupByCaption = resources.GetString("dgrdData.GroupByCaption");
			this.dgrdData.Images.Add(((System.Drawing.Image)(resources.GetObject("resource"))));
			this.dgrdData.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dgrdData.ImeMode")));
			this.dgrdData.LinesPerRow = ((int)(resources.GetObject("dgrdData.LinesPerRow")));
			this.dgrdData.Location = ((System.Drawing.Point)(resources.GetObject("dgrdData.Location")));
			this.dgrdData.MarqueeStyle = C1.Win.C1TrueDBGrid.MarqueeEnum.DottedCellBorder;
			this.dgrdData.Name = "dgrdData";
			this.dgrdData.PictureAddnewRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureAddnewRow")));
			this.dgrdData.PictureCurrentRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureCurrentRow")));
			this.dgrdData.PictureFilterBar = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureFilterBar")));
			this.dgrdData.PictureFooterRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureFooterRow")));
			this.dgrdData.PictureHeaderRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureHeaderRow")));
			this.dgrdData.PictureModifiedRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureModifiedRow")));
			this.dgrdData.PictureStandardRow = ((System.Drawing.Image)(resources.GetObject("dgrdData.PictureStandardRow")));
			this.dgrdData.PreviewInfo.AllowSizing = ((bool)(resources.GetObject("dgrdData.PreviewInfo.AllowSizing")));
			this.dgrdData.PreviewInfo.Caption = resources.GetString("dgrdData.PreviewInfo.Caption");
			this.dgrdData.PreviewInfo.Location = ((System.Drawing.Point)(resources.GetObject("dgrdData.PreviewInfo.Location")));
			this.dgrdData.PreviewInfo.Size = ((System.Drawing.Size)(resources.GetObject("dgrdData.PreviewInfo.Size")));
			this.dgrdData.PreviewInfo.ToolBars = ((bool)(resources.GetObject("dgrdData.PreviewInfo.ToolBars")));
			this.dgrdData.PreviewInfo.UIStrings.Content = ((string[])(resources.GetObject("dgrdData.PreviewInfo.UIStrings.Content")));
			this.dgrdData.PreviewInfo.ZoomFactor = ((System.Double)(resources.GetObject("dgrdData.PreviewInfo.ZoomFactor")));
			this.dgrdData.PrintInfo.MaxRowHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.MaxRowHeight")));
			this.dgrdData.PrintInfo.OwnerDrawPageFooter = ((bool)(resources.GetObject("dgrdData.PrintInfo.OwnerDrawPageFooter")));
			this.dgrdData.PrintInfo.OwnerDrawPageHeader = ((bool)(resources.GetObject("dgrdData.PrintInfo.OwnerDrawPageHeader")));
			this.dgrdData.PrintInfo.PageFooter = resources.GetString("dgrdData.PrintInfo.PageFooter");
			this.dgrdData.PrintInfo.PageFooterHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.PageFooterHeight")));
			this.dgrdData.PrintInfo.PageHeader = resources.GetString("dgrdData.PrintInfo.PageHeader");
			this.dgrdData.PrintInfo.PageHeaderHeight = ((int)(resources.GetObject("dgrdData.PrintInfo.PageHeaderHeight")));
			this.dgrdData.PrintInfo.PrintHorizontalSplits = ((bool)(resources.GetObject("dgrdData.PrintInfo.PrintHorizontalSplits")));
			this.dgrdData.PrintInfo.ProgressCaption = resources.GetString("dgrdData.PrintInfo.ProgressCaption");
			this.dgrdData.PrintInfo.RepeatColumnFooters = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatColumnFooters")));
			this.dgrdData.PrintInfo.RepeatColumnHeaders = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatColumnHeaders")));
			this.dgrdData.PrintInfo.RepeatGridHeader = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatGridHeader")));
			this.dgrdData.PrintInfo.RepeatSplitHeaders = ((bool)(resources.GetObject("dgrdData.PrintInfo.RepeatSplitHeaders")));
			this.dgrdData.PrintInfo.ShowOptionsDialog = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowOptionsDialog")));
			this.dgrdData.PrintInfo.ShowProgressForm = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowProgressForm")));
			this.dgrdData.PrintInfo.ShowSelection = ((bool)(resources.GetObject("dgrdData.PrintInfo.ShowSelection")));
			this.dgrdData.PrintInfo.UseGridColors = ((bool)(resources.GetObject("dgrdData.PrintInfo.UseGridColors")));
			this.dgrdData.RecordSelectors = ((bool)(resources.GetObject("dgrdData.RecordSelectors")));
			this.dgrdData.RecordSelectorWidth = ((int)(resources.GetObject("dgrdData.RecordSelectorWidth")));
			this.dgrdData.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dgrdData.RightToLeft")));
			this.dgrdData.RowDivider.Color = ((System.Drawing.Color)(resources.GetObject("resource.Color")));
			this.dgrdData.RowDivider.Style = ((C1.Win.C1TrueDBGrid.LineStyleEnum)(resources.GetObject("resource.Style")));
			this.dgrdData.RowHeight = ((int)(resources.GetObject("dgrdData.RowHeight")));
			this.dgrdData.RowSubDividerColor = ((System.Drawing.Color)(resources.GetObject("dgrdData.RowSubDividerColor")));
			this.dgrdData.ScrollTips = ((bool)(resources.GetObject("dgrdData.ScrollTips")));
			this.dgrdData.ScrollTrack = ((bool)(resources.GetObject("dgrdData.ScrollTrack")));
			this.dgrdData.Size = ((System.Drawing.Size)(resources.GetObject("dgrdData.Size")));
			this.dgrdData.SpringMode = ((bool)(resources.GetObject("dgrdData.SpringMode")));
			this.dgrdData.TabAcrossSplits = ((bool)(resources.GetObject("dgrdData.TabAcrossSplits")));
			this.dgrdData.TabIndex = ((int)(resources.GetObject("dgrdData.TabIndex")));
			this.dgrdData.Text = resources.GetString("dgrdData.Text");
			this.dgrdData.ViewCaptionWidth = ((int)(resources.GetObject("dgrdData.ViewCaptionWidth")));
			this.dgrdData.ViewColumnWidth = ((int)(resources.GetObject("dgrdData.ViewColumnWidth")));
			this.dgrdData.Visible = ((bool)(resources.GetObject("dgrdData.Visible")));
			this.dgrdData.WrapCellPointer = ((bool)(resources.GetObject("dgrdData.WrapCellPointer")));
			this.dgrdData.ButtonClick += new C1.Win.C1TrueDBGrid.ColEventHandler(this.dgrdData_ButtonClick);
			this.dgrdData.AfterColUpdate += new C1.Win.C1TrueDBGrid.ColEventHandler(this.dgrdData_AfterColUpdate);
			this.dgrdData.BeforeColUpdate += new C1.Win.C1TrueDBGrid.BeforeColUpdateEventHandler(this.dgrdData_BeforeColUpdate);
			this.dgrdData.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgrdData_KeyDown);
			this.dgrdData.PropBag = resources.GetString("dgrdData.PropBag");
			// 
			// lblCycle
			// 
			this.lblCycle.AccessibleDescription = resources.GetString("lblCycle.AccessibleDescription");
			this.lblCycle.AccessibleName = resources.GetString("lblCycle.AccessibleName");
			this.lblCycle.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblCycle.Anchor")));
			this.lblCycle.AutoSize = ((bool)(resources.GetObject("lblCycle.AutoSize")));
			this.lblCycle.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblCycle.Dock")));
			this.lblCycle.Enabled = ((bool)(resources.GetObject("lblCycle.Enabled")));
			this.lblCycle.Font = ((System.Drawing.Font)(resources.GetObject("lblCycle.Font")));
			this.lblCycle.ForeColor = System.Drawing.Color.Maroon;
			this.lblCycle.Image = ((System.Drawing.Image)(resources.GetObject("lblCycle.Image")));
			this.lblCycle.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCycle.ImageAlign")));
			this.lblCycle.ImageIndex = ((int)(resources.GetObject("lblCycle.ImageIndex")));
			this.lblCycle.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblCycle.ImeMode")));
			this.lblCycle.Location = ((System.Drawing.Point)(resources.GetObject("lblCycle.Location")));
			this.lblCycle.Name = "lblCycle";
			this.lblCycle.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblCycle.RightToLeft")));
			this.lblCycle.Size = ((System.Drawing.Size)(resources.GetObject("lblCycle.Size")));
			this.lblCycle.TabIndex = ((int)(resources.GetObject("lblCycle.TabIndex")));
			this.lblCycle.Text = resources.GetString("lblCycle.Text");
			this.lblCycle.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCycle.TextAlign")));
			this.lblCycle.Visible = ((bool)(resources.GetObject("lblCycle.Visible")));
			// 
			// lblFromDate
			// 
			this.lblFromDate.AccessibleDescription = resources.GetString("lblFromDate.AccessibleDescription");
			this.lblFromDate.AccessibleName = resources.GetString("lblFromDate.AccessibleName");
			this.lblFromDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblFromDate.Anchor")));
			this.lblFromDate.AutoSize = ((bool)(resources.GetObject("lblFromDate.AutoSize")));
			this.lblFromDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblFromDate.Dock")));
			this.lblFromDate.Enabled = ((bool)(resources.GetObject("lblFromDate.Enabled")));
			this.lblFromDate.Font = ((System.Drawing.Font)(resources.GetObject("lblFromDate.Font")));
			this.lblFromDate.ForeColor = System.Drawing.Color.Maroon;
			this.lblFromDate.Image = ((System.Drawing.Image)(resources.GetObject("lblFromDate.Image")));
			this.lblFromDate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFromDate.ImageAlign")));
			this.lblFromDate.ImageIndex = ((int)(resources.GetObject("lblFromDate.ImageIndex")));
			this.lblFromDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblFromDate.ImeMode")));
			this.lblFromDate.Location = ((System.Drawing.Point)(resources.GetObject("lblFromDate.Location")));
			this.lblFromDate.Name = "lblFromDate";
			this.lblFromDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblFromDate.RightToLeft")));
			this.lblFromDate.Size = ((System.Drawing.Size)(resources.GetObject("lblFromDate.Size")));
			this.lblFromDate.TabIndex = ((int)(resources.GetObject("lblFromDate.TabIndex")));
			this.lblFromDate.Text = resources.GetString("lblFromDate.Text");
			this.lblFromDate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblFromDate.TextAlign")));
			this.lblFromDate.Visible = ((bool)(resources.GetObject("lblFromDate.Visible")));
			// 
			// lblCycleDesc
			// 
			this.lblCycleDesc.AccessibleDescription = resources.GetString("lblCycleDesc.AccessibleDescription");
			this.lblCycleDesc.AccessibleName = resources.GetString("lblCycleDesc.AccessibleName");
			this.lblCycleDesc.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblCycleDesc.Anchor")));
			this.lblCycleDesc.AutoSize = ((bool)(resources.GetObject("lblCycleDesc.AutoSize")));
			this.lblCycleDesc.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblCycleDesc.Dock")));
			this.lblCycleDesc.Enabled = ((bool)(resources.GetObject("lblCycleDesc.Enabled")));
			this.lblCycleDesc.Font = ((System.Drawing.Font)(resources.GetObject("lblCycleDesc.Font")));
			this.lblCycleDesc.Image = ((System.Drawing.Image)(resources.GetObject("lblCycleDesc.Image")));
			this.lblCycleDesc.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCycleDesc.ImageAlign")));
			this.lblCycleDesc.ImageIndex = ((int)(resources.GetObject("lblCycleDesc.ImageIndex")));
			this.lblCycleDesc.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblCycleDesc.ImeMode")));
			this.lblCycleDesc.Location = ((System.Drawing.Point)(resources.GetObject("lblCycleDesc.Location")));
			this.lblCycleDesc.Name = "lblCycleDesc";
			this.lblCycleDesc.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblCycleDesc.RightToLeft")));
			this.lblCycleDesc.Size = ((System.Drawing.Size)(resources.GetObject("lblCycleDesc.Size")));
			this.lblCycleDesc.TabIndex = ((int)(resources.GetObject("lblCycleDesc.TabIndex")));
			this.lblCycleDesc.Text = resources.GetString("lblCycleDesc.Text");
			this.lblCycleDesc.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCycleDesc.TextAlign")));
			this.lblCycleDesc.Visible = ((bool)(resources.GetObject("lblCycleDesc.Visible")));
			// 
			// txtCycleDecription
			// 
			this.txtCycleDecription.AccessibleDescription = resources.GetString("txtCycleDecription.AccessibleDescription");
			this.txtCycleDecription.AccessibleName = resources.GetString("txtCycleDecription.AccessibleName");
			this.txtCycleDecription.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtCycleDecription.Anchor")));
			this.txtCycleDecription.AutoSize = ((bool)(resources.GetObject("txtCycleDecription.AutoSize")));
			this.txtCycleDecription.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtCycleDecription.BackgroundImage")));
			this.txtCycleDecription.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtCycleDecription.Dock")));
			this.txtCycleDecription.Enabled = ((bool)(resources.GetObject("txtCycleDecription.Enabled")));
			this.txtCycleDecription.Font = ((System.Drawing.Font)(resources.GetObject("txtCycleDecription.Font")));
			this.txtCycleDecription.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtCycleDecription.ImeMode")));
			this.txtCycleDecription.Location = ((System.Drawing.Point)(resources.GetObject("txtCycleDecription.Location")));
			this.txtCycleDecription.MaxLength = ((int)(resources.GetObject("txtCycleDecription.MaxLength")));
			this.txtCycleDecription.Multiline = ((bool)(resources.GetObject("txtCycleDecription.Multiline")));
			this.txtCycleDecription.Name = "txtCycleDecription";
			this.txtCycleDecription.PasswordChar = ((char)(resources.GetObject("txtCycleDecription.PasswordChar")));
			this.txtCycleDecription.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtCycleDecription.RightToLeft")));
			this.txtCycleDecription.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtCycleDecription.ScrollBars")));
			this.txtCycleDecription.Size = ((System.Drawing.Size)(resources.GetObject("txtCycleDecription.Size")));
			this.txtCycleDecription.TabIndex = ((int)(resources.GetObject("txtCycleDecription.TabIndex")));
			this.txtCycleDecription.Text = resources.GetString("txtCycleDecription.Text");
			this.txtCycleDecription.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtCycleDecription.TextAlign")));
			this.txtCycleDecription.Visible = ((bool)(resources.GetObject("txtCycleDecription.Visible")));
			this.txtCycleDecription.WordWrap = ((bool)(resources.GetObject("txtCycleDecription.WordWrap")));
			this.txtCycleDecription.Leave += new System.EventHandler(this.OnLeaveControl);
			this.txtCycleDecription.Enter += new System.EventHandler(this.OnEnterControl);
			// 
			// lblMPSGenDate
			// 
			this.lblMPSGenDate.AccessibleDescription = resources.GetString("lblMPSGenDate.AccessibleDescription");
			this.lblMPSGenDate.AccessibleName = resources.GetString("lblMPSGenDate.AccessibleName");
			this.lblMPSGenDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblMPSGenDate.Anchor")));
			this.lblMPSGenDate.AutoSize = ((bool)(resources.GetObject("lblMPSGenDate.AutoSize")));
			this.lblMPSGenDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblMPSGenDate.Dock")));
			this.lblMPSGenDate.Enabled = ((bool)(resources.GetObject("lblMPSGenDate.Enabled")));
			this.lblMPSGenDate.Font = ((System.Drawing.Font)(resources.GetObject("lblMPSGenDate.Font")));
			this.lblMPSGenDate.Image = ((System.Drawing.Image)(resources.GetObject("lblMPSGenDate.Image")));
			this.lblMPSGenDate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblMPSGenDate.ImageAlign")));
			this.lblMPSGenDate.ImageIndex = ((int)(resources.GetObject("lblMPSGenDate.ImageIndex")));
			this.lblMPSGenDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblMPSGenDate.ImeMode")));
			this.lblMPSGenDate.Location = ((System.Drawing.Point)(resources.GetObject("lblMPSGenDate.Location")));
			this.lblMPSGenDate.Name = "lblMPSGenDate";
			this.lblMPSGenDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblMPSGenDate.RightToLeft")));
			this.lblMPSGenDate.Size = ((System.Drawing.Size)(resources.GetObject("lblMPSGenDate.Size")));
			this.lblMPSGenDate.TabIndex = ((int)(resources.GetObject("lblMPSGenDate.TabIndex")));
			this.lblMPSGenDate.Text = resources.GetString("lblMPSGenDate.Text");
			this.lblMPSGenDate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblMPSGenDate.TextAlign")));
			this.lblMPSGenDate.Visible = ((bool)(resources.GetObject("lblMPSGenDate.Visible")));
			// 
			// lblToDate
			// 
			this.lblToDate.AccessibleDescription = resources.GetString("lblToDate.AccessibleDescription");
			this.lblToDate.AccessibleName = resources.GetString("lblToDate.AccessibleName");
			this.lblToDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblToDate.Anchor")));
			this.lblToDate.AutoSize = ((bool)(resources.GetObject("lblToDate.AutoSize")));
			this.lblToDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblToDate.Dock")));
			this.lblToDate.Enabled = ((bool)(resources.GetObject("lblToDate.Enabled")));
			this.lblToDate.Font = ((System.Drawing.Font)(resources.GetObject("lblToDate.Font")));
			this.lblToDate.ForeColor = System.Drawing.Color.Maroon;
			this.lblToDate.Image = ((System.Drawing.Image)(resources.GetObject("lblToDate.Image")));
			this.lblToDate.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblToDate.ImageAlign")));
			this.lblToDate.ImageIndex = ((int)(resources.GetObject("lblToDate.ImageIndex")));
			this.lblToDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblToDate.ImeMode")));
			this.lblToDate.Location = ((System.Drawing.Point)(resources.GetObject("lblToDate.Location")));
			this.lblToDate.Name = "lblToDate";
			this.lblToDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblToDate.RightToLeft")));
			this.lblToDate.Size = ((System.Drawing.Size)(resources.GetObject("lblToDate.Size")));
			this.lblToDate.TabIndex = ((int)(resources.GetObject("lblToDate.TabIndex")));
			this.lblToDate.Text = resources.GetString("lblToDate.Text");
			this.lblToDate.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblToDate.TextAlign")));
			this.lblToDate.Visible = ((bool)(resources.GetObject("lblToDate.Visible")));
			// 
			// btnEdit
			// 
			this.btnEdit.AccessibleDescription = resources.GetString("btnEdit.AccessibleDescription");
			this.btnEdit.AccessibleName = resources.GetString("btnEdit.AccessibleName");
			this.btnEdit.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnEdit.Anchor")));
			this.btnEdit.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnEdit.BackgroundImage")));
			this.btnEdit.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnEdit.Dock")));
			this.btnEdit.Enabled = ((bool)(resources.GetObject("btnEdit.Enabled")));
			this.btnEdit.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnEdit.FlatStyle")));
			this.btnEdit.Font = ((System.Drawing.Font)(resources.GetObject("btnEdit.Font")));
			this.btnEdit.Image = ((System.Drawing.Image)(resources.GetObject("btnEdit.Image")));
			this.btnEdit.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnEdit.ImageAlign")));
			this.btnEdit.ImageIndex = ((int)(resources.GetObject("btnEdit.ImageIndex")));
			this.btnEdit.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnEdit.ImeMode")));
			this.btnEdit.Location = ((System.Drawing.Point)(resources.GetObject("btnEdit.Location")));
			this.btnEdit.Name = "btnEdit";
			this.btnEdit.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnEdit.RightToLeft")));
			this.btnEdit.Size = ((System.Drawing.Size)(resources.GetObject("btnEdit.Size")));
			this.btnEdit.TabIndex = ((int)(resources.GetObject("btnEdit.TabIndex")));
			this.btnEdit.Text = resources.GetString("btnEdit.Text");
			this.btnEdit.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnEdit.TextAlign")));
			this.btnEdit.Visible = ((bool)(resources.GetObject("btnEdit.Visible")));
			this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
			// 
			// btnDelete
			// 
			this.btnDelete.AccessibleDescription = resources.GetString("btnDelete.AccessibleDescription");
			this.btnDelete.AccessibleName = resources.GetString("btnDelete.AccessibleName");
			this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnDelete.Anchor")));
			this.btnDelete.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnDelete.BackgroundImage")));
			this.btnDelete.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnDelete.Dock")));
			this.btnDelete.Enabled = ((bool)(resources.GetObject("btnDelete.Enabled")));
			this.btnDelete.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnDelete.FlatStyle")));
			this.btnDelete.Font = ((System.Drawing.Font)(resources.GetObject("btnDelete.Font")));
			this.btnDelete.Image = ((System.Drawing.Image)(resources.GetObject("btnDelete.Image")));
			this.btnDelete.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnDelete.ImageAlign")));
			this.btnDelete.ImageIndex = ((int)(resources.GetObject("btnDelete.ImageIndex")));
			this.btnDelete.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnDelete.ImeMode")));
			this.btnDelete.Location = ((System.Drawing.Point)(resources.GetObject("btnDelete.Location")));
			this.btnDelete.Name = "btnDelete";
			this.btnDelete.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnDelete.RightToLeft")));
			this.btnDelete.Size = ((System.Drawing.Size)(resources.GetObject("btnDelete.Size")));
			this.btnDelete.TabIndex = ((int)(resources.GetObject("btnDelete.TabIndex")));
			this.btnDelete.Text = resources.GetString("btnDelete.Text");
			this.btnDelete.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnDelete.TextAlign")));
			this.btnDelete.Visible = ((bool)(resources.GetObject("btnDelete.Visible")));
			this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
			// 
			// btnSave
			// 
			this.btnSave.AccessibleDescription = resources.GetString("btnSave.AccessibleDescription");
			this.btnSave.AccessibleName = resources.GetString("btnSave.AccessibleName");
			this.btnSave.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnSave.Anchor")));
			this.btnSave.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSave.BackgroundImage")));
			this.btnSave.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnSave.Dock")));
			this.btnSave.Enabled = ((bool)(resources.GetObject("btnSave.Enabled")));
			this.btnSave.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnSave.FlatStyle")));
			this.btnSave.Font = ((System.Drawing.Font)(resources.GetObject("btnSave.Font")));
			this.btnSave.Image = ((System.Drawing.Image)(resources.GetObject("btnSave.Image")));
			this.btnSave.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSave.ImageAlign")));
			this.btnSave.ImageIndex = ((int)(resources.GetObject("btnSave.ImageIndex")));
			this.btnSave.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnSave.ImeMode")));
			this.btnSave.Location = ((System.Drawing.Point)(resources.GetObject("btnSave.Location")));
			this.btnSave.Name = "btnSave";
			this.btnSave.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnSave.RightToLeft")));
			this.btnSave.Size = ((System.Drawing.Size)(resources.GetObject("btnSave.Size")));
			this.btnSave.TabIndex = ((int)(resources.GetObject("btnSave.TabIndex")));
			this.btnSave.Text = resources.GetString("btnSave.Text");
			this.btnSave.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnSave.TextAlign")));
			this.btnSave.Visible = ((bool)(resources.GetObject("btnSave.Visible")));
			this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
			// 
			// btnAdd
			// 
			this.btnAdd.AccessibleDescription = resources.GetString("btnAdd.AccessibleDescription");
			this.btnAdd.AccessibleName = resources.GetString("btnAdd.AccessibleName");
			this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnAdd.Anchor")));
			this.btnAdd.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnAdd.BackgroundImage")));
			this.btnAdd.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnAdd.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnAdd.Dock")));
			this.btnAdd.Enabled = ((bool)(resources.GetObject("btnAdd.Enabled")));
			this.btnAdd.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnAdd.FlatStyle")));
			this.btnAdd.Font = ((System.Drawing.Font)(resources.GetObject("btnAdd.Font")));
			this.btnAdd.Image = ((System.Drawing.Image)(resources.GetObject("btnAdd.Image")));
			this.btnAdd.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnAdd.ImageAlign")));
			this.btnAdd.ImageIndex = ((int)(resources.GetObject("btnAdd.ImageIndex")));
			this.btnAdd.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnAdd.ImeMode")));
			this.btnAdd.Location = ((System.Drawing.Point)(resources.GetObject("btnAdd.Location")));
			this.btnAdd.Name = "btnAdd";
			this.btnAdd.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnAdd.RightToLeft")));
			this.btnAdd.Size = ((System.Drawing.Size)(resources.GetObject("btnAdd.Size")));
			this.btnAdd.TabIndex = ((int)(resources.GetObject("btnAdd.TabIndex")));
			this.btnAdd.Text = resources.GetString("btnAdd.Text");
			this.btnAdd.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnAdd.TextAlign")));
			this.btnAdd.Visible = ((bool)(resources.GetObject("btnAdd.Visible")));
			this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
			// 
			// btnClose
			// 
			this.btnClose.AccessibleDescription = resources.GetString("btnClose.AccessibleDescription");
			this.btnClose.AccessibleName = resources.GetString("btnClose.AccessibleName");
			this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnClose.Anchor")));
			this.btnClose.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnClose.BackgroundImage")));
			this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnClose.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnClose.Dock")));
			this.btnClose.Enabled = ((bool)(resources.GetObject("btnClose.Enabled")));
			this.btnClose.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnClose.FlatStyle")));
			this.btnClose.Font = ((System.Drawing.Font)(resources.GetObject("btnClose.Font")));
			this.btnClose.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.Image")));
			this.btnClose.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.ImageAlign")));
			this.btnClose.ImageIndex = ((int)(resources.GetObject("btnClose.ImageIndex")));
			this.btnClose.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnClose.ImeMode")));
			this.btnClose.Location = ((System.Drawing.Point)(resources.GetObject("btnClose.Location")));
			this.btnClose.Name = "btnClose";
			this.btnClose.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnClose.RightToLeft")));
			this.btnClose.Size = ((System.Drawing.Size)(resources.GetObject("btnClose.Size")));
			this.btnClose.TabIndex = ((int)(resources.GetObject("btnClose.TabIndex")));
			this.btnClose.Text = resources.GetString("btnClose.Text");
			this.btnClose.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnClose.TextAlign")));
			this.btnClose.Visible = ((bool)(resources.GetObject("btnClose.Visible")));
			this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
			// 
			// btnHelp
			// 
			this.btnHelp.AccessibleDescription = resources.GetString("btnHelp.AccessibleDescription");
			this.btnHelp.AccessibleName = resources.GetString("btnHelp.AccessibleName");
			this.btnHelp.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnHelp.Anchor")));
			this.btnHelp.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnHelp.BackgroundImage")));
			this.btnHelp.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnHelp.Dock")));
			this.btnHelp.Enabled = ((bool)(resources.GetObject("btnHelp.Enabled")));
			this.btnHelp.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnHelp.FlatStyle")));
			this.btnHelp.Font = ((System.Drawing.Font)(resources.GetObject("btnHelp.Font")));
			this.btnHelp.Image = ((System.Drawing.Image)(resources.GetObject("btnHelp.Image")));
			this.btnHelp.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.ImageAlign")));
			this.btnHelp.ImageIndex = ((int)(resources.GetObject("btnHelp.ImageIndex")));
			this.btnHelp.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnHelp.ImeMode")));
			this.btnHelp.Location = ((System.Drawing.Point)(resources.GetObject("btnHelp.Location")));
			this.btnHelp.Name = "btnHelp";
			this.btnHelp.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnHelp.RightToLeft")));
			this.btnHelp.Size = ((System.Drawing.Size)(resources.GetObject("btnHelp.Size")));
			this.btnHelp.TabIndex = ((int)(resources.GetObject("btnHelp.TabIndex")));
			this.btnHelp.Text = resources.GetString("btnHelp.Text");
			this.btnHelp.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnHelp.TextAlign")));
			this.btnHelp.Visible = ((bool)(resources.GetObject("btnHelp.Visible")));
			this.btnHelp.Click += new System.EventHandler(this.btnHelp_Click);
			// 
			// btnPrint
			// 
			this.btnPrint.AccessibleDescription = resources.GetString("btnPrint.AccessibleDescription");
			this.btnPrint.AccessibleName = resources.GetString("btnPrint.AccessibleName");
			this.btnPrint.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnPrint.Anchor")));
			this.btnPrint.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnPrint.BackgroundImage")));
			this.btnPrint.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnPrint.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnPrint.Dock")));
			this.btnPrint.Enabled = ((bool)(resources.GetObject("btnPrint.Enabled")));
			this.btnPrint.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnPrint.FlatStyle")));
			this.btnPrint.Font = ((System.Drawing.Font)(resources.GetObject("btnPrint.Font")));
			this.btnPrint.Image = ((System.Drawing.Image)(resources.GetObject("btnPrint.Image")));
			this.btnPrint.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnPrint.ImageAlign")));
			this.btnPrint.ImageIndex = ((int)(resources.GetObject("btnPrint.ImageIndex")));
			this.btnPrint.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnPrint.ImeMode")));
			this.btnPrint.Location = ((System.Drawing.Point)(resources.GetObject("btnPrint.Location")));
			this.btnPrint.Name = "btnPrint";
			this.btnPrint.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnPrint.RightToLeft")));
			this.btnPrint.Size = ((System.Drawing.Size)(resources.GetObject("btnPrint.Size")));
			this.btnPrint.TabIndex = ((int)(resources.GetObject("btnPrint.TabIndex")));
			this.btnPrint.Text = resources.GetString("btnPrint.Text");
			this.btnPrint.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnPrint.TextAlign")));
			this.btnPrint.Visible = ((bool)(resources.GetObject("btnPrint.Visible")));
			this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click);
			// 
			// cboCCN
			// 
			this.cboCCN.AccessibleDescription = resources.GetString("cboCCN.AccessibleDescription");
			this.cboCCN.AccessibleName = resources.GetString("cboCCN.AccessibleName");
			this.cboCCN.AddItemSeparator = ';';
			this.cboCCN.AllowRowSizing = C1.Win.C1List.RowSizingEnum.AllRows;
			this.cboCCN.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("cboCCN.Anchor")));
			this.cboCCN.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("cboCCN.BackgroundImage")));
			this.cboCCN.Caption = "";
			this.cboCCN.CaptionHeight = 17;
			this.cboCCN.CharacterCasing = System.Windows.Forms.CharacterCasing.Normal;
			this.cboCCN.ColumnCaptionHeight = 17;
			this.cboCCN.ColumnFooterHeight = 17;
			this.cboCCN.ContentHeight = 15;
			this.cboCCN.DeadAreaBackColor = System.Drawing.Color.Empty;
			this.cboCCN.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("cboCCN.Dock")));
			this.cboCCN.EditorBackColor = System.Drawing.SystemColors.Window;
			this.cboCCN.EditorFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.cboCCN.EditorForeColor = System.Drawing.SystemColors.WindowText;
			this.cboCCN.EditorHeight = 15;
			this.cboCCN.Enabled = ((bool)(resources.GetObject("cboCCN.Enabled")));
			this.cboCCN.FlatStyle = C1.Win.C1List.FlatModeEnum.System;
			this.cboCCN.Font = ((System.Drawing.Font)(resources.GetObject("cboCCN.Font")));
			this.cboCCN.GapHeight = 2;
			this.cboCCN.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("cboCCN.ImeMode")));
			this.cboCCN.ItemHeight = 15;
			this.cboCCN.Location = ((System.Drawing.Point)(resources.GetObject("cboCCN.Location")));
			this.cboCCN.MatchEntryTimeout = ((long)(2000));
			this.cboCCN.MaxDropDownItems = ((short)(5));
			this.cboCCN.MaxLength = 32767;
			this.cboCCN.MouseCursor = System.Windows.Forms.Cursors.Default;
			this.cboCCN.Name = "cboCCN";
			this.cboCCN.PartialRightColumn = false;
			this.cboCCN.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("cboCCN.RightToLeft")));
			this.cboCCN.RowDivider.Color = System.Drawing.Color.DarkGray;
			this.cboCCN.RowDivider.Style = C1.Win.C1List.LineStyleEnum.None;
			this.cboCCN.RowSubDividerColor = System.Drawing.Color.DarkGray;
			this.cboCCN.Size = ((System.Drawing.Size)(resources.GetObject("cboCCN.Size")));
			this.cboCCN.TabIndex = ((int)(resources.GetObject("cboCCN.TabIndex")));
			this.cboCCN.Text = resources.GetString("cboCCN.Text");
			this.cboCCN.Visible = ((bool)(resources.GetObject("cboCCN.Visible")));
			this.cboCCN.PropBag = "<?xml version=\"1.0\"?><Blob><Styles type=\"C1.Win.C1List.Design.ContextWrapper\"><Da" +
				"ta>Group{BackColor:ControlDark;Border:None,,0, 0, 0, 0;AlignVert:Center;}Style2{" +
				"}Style5{}Style4{}Style7{}Style6{}EvenRow{BackColor:Aqua;}Selected{ForeColor:High" +
				"lightText;BackColor:Highlight;}Style3{}Inactive{ForeColor:InactiveCaptionText;Ba" +
				"ckColor:InactiveCaption;}Footer{}Caption{AlignHorz:Center;}Normal{BackColor:Wind" +
				"ow;}HighlightRow{ForeColor:HighlightText;BackColor:Highlight;}Style9{AlignHorz:N" +
				"ear;}OddRow{}RecordSelector{AlignImage:Center;}Heading{Wrap:True;AlignVert:Cente" +
				"r;Border:Raised,,1, 1, 1, 1;ForeColor:ControlText;BackColor:Control;}Style8{}Sty" +
				"le10{}Style11{}Style1{}</Data></Styles><Splits><C1.Win.C1List.ListBoxView AllowC" +
				"olSelect=\"False\" Name=\"\" CaptionHeight=\"17\" ColumnCaptionHeight=\"17\" ColumnFoote" +
				"rHeight=\"17\" VerticalScrollGroup=\"1\" HorizontalScrollGroup=\"1\"><ClientRect>0, 0," +
				" 118, 158</ClientRect><VScrollBar><Width>16</Width></VScrollBar><HScrollBar><Hei" +
				"ght>16</Height></HScrollBar><CaptionStyle parent=\"Style2\" me=\"Style9\" /><EvenRow" +
				"Style parent=\"EvenRow\" me=\"Style7\" /><FooterStyle parent=\"Footer\" me=\"Style3\" />" +
				"<GroupStyle parent=\"Group\" me=\"Style11\" /><HeadingStyle parent=\"Heading\" me=\"Sty" +
				"le2\" /><HighLightRowStyle parent=\"HighlightRow\" me=\"Style6\" /><InactiveStyle par" +
				"ent=\"Inactive\" me=\"Style4\" /><OddRowStyle parent=\"OddRow\" me=\"Style8\" /><RecordS" +
				"electorStyle parent=\"RecordSelector\" me=\"Style10\" /><SelectedStyle parent=\"Selec" +
				"ted\" me=\"Style5\" /><Style parent=\"Normal\" me=\"Style1\" /></C1.Win.C1List.ListBoxV" +
				"iew></Splits><NamedStyles><Style parent=\"\" me=\"Normal\" /><Style parent=\"Normal\" " +
				"me=\"Heading\" /><Style parent=\"Heading\" me=\"Footer\" /><Style parent=\"Heading\" me=" +
				"\"Caption\" /><Style parent=\"Heading\" me=\"Inactive\" /><Style parent=\"Normal\" me=\"S" +
				"elected\" /><Style parent=\"Normal\" me=\"HighlightRow\" /><Style parent=\"Normal\" me=" +
				"\"EvenRow\" /><Style parent=\"Normal\" me=\"OddRow\" /><Style parent=\"Heading\" me=\"Rec" +
				"ordSelector\" /><Style parent=\"Caption\" me=\"Group\" /></NamedStyles><vertSplits>1<" +
				"/vertSplits><horzSplits>1</horzSplits><Layout>Modified</Layout><DefaultRecSelWid" +
				"th>17</DefaultRecSelWidth></Blob>";
			// 
			// lblCCN
			// 
			this.lblCCN.AccessibleDescription = resources.GetString("lblCCN.AccessibleDescription");
			this.lblCCN.AccessibleName = resources.GetString("lblCCN.AccessibleName");
			this.lblCCN.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblCCN.Anchor")));
			this.lblCCN.AutoSize = ((bool)(resources.GetObject("lblCCN.AutoSize")));
			this.lblCCN.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblCCN.Dock")));
			this.lblCCN.Enabled = ((bool)(resources.GetObject("lblCCN.Enabled")));
			this.lblCCN.Font = ((System.Drawing.Font)(resources.GetObject("lblCCN.Font")));
			this.lblCCN.ForeColor = System.Drawing.Color.Maroon;
			this.lblCCN.Image = ((System.Drawing.Image)(resources.GetObject("lblCCN.Image")));
			this.lblCCN.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCCN.ImageAlign")));
			this.lblCCN.ImageIndex = ((int)(resources.GetObject("lblCCN.ImageIndex")));
			this.lblCCN.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblCCN.ImeMode")));
			this.lblCCN.Location = ((System.Drawing.Point)(resources.GetObject("lblCCN.Location")));
			this.lblCCN.Name = "lblCCN";
			this.lblCCN.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblCCN.RightToLeft")));
			this.lblCCN.Size = ((System.Drawing.Size)(resources.GetObject("lblCCN.Size")));
			this.lblCCN.TabIndex = ((int)(resources.GetObject("lblCCN.TabIndex")));
			this.lblCCN.Text = resources.GetString("lblCCN.Text");
			this.lblCCN.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblCCN.TextAlign")));
			this.lblCCN.Visible = ((bool)(resources.GetObject("lblCCN.Visible")));
			// 
			// dtmFromDate
			// 
			this.dtmFromDate.AcceptsEscape = ((bool)(resources.GetObject("dtmFromDate.AcceptsEscape")));
			this.dtmFromDate.AccessibleDescription = resources.GetString("dtmFromDate.AccessibleDescription");
			this.dtmFromDate.AccessibleName = resources.GetString("dtmFromDate.AccessibleName");
			this.dtmFromDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmFromDate.Anchor")));
			this.dtmFromDate.AutoSize = ((bool)(resources.GetObject("dtmFromDate.AutoSize")));
			this.dtmFromDate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmFromDate.BackgroundImage")));
			this.dtmFromDate.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmFromDate.BorderStyle")));
			// 
			// dtmFromDate.Calendar
			// 
			this.dtmFromDate.Calendar.AccessibleDescription = resources.GetString("dtmFromDate.Calendar.AccessibleDescription");
			this.dtmFromDate.Calendar.AccessibleName = resources.GetString("dtmFromDate.Calendar.AccessibleName");
			this.dtmFromDate.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromDate.Calendar.AnnuallyBoldedDates")));
			this.dtmFromDate.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmFromDate.Calendar.BackgroundImage")));
			this.dtmFromDate.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromDate.Calendar.BoldedDates")));
			this.dtmFromDate.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmFromDate.Calendar.CalendarDimensions")));
			this.dtmFromDate.Calendar.Enabled = ((bool)(resources.GetObject("dtmFromDate.Calendar.Enabled")));
			this.dtmFromDate.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmFromDate.Calendar.FirstDayOfWeek")));
			this.dtmFromDate.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmFromDate.Calendar.Font")));
			this.dtmFromDate.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmFromDate.Calendar.ImeMode")));
			this.dtmFromDate.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmFromDate.Calendar.MonthlyBoldedDates")));
			this.dtmFromDate.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmFromDate.Calendar.RightToLeft")));
			this.dtmFromDate.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmFromDate.Calendar.ShowClearButton")));
			this.dtmFromDate.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmFromDate.Calendar.ShowTodayButton")));
			this.dtmFromDate.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmFromDate.Calendar.ShowWeekNumbers")));
			this.dtmFromDate.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.CaseSensitive")));
			this.dtmFromDate.Culture = ((int)(resources.GetObject("dtmFromDate.Culture")));
			this.dtmFromDate.CurrentTimeZone = ((bool)(resources.GetObject("dtmFromDate.CurrentTimeZone")));
			this.dtmFromDate.CustomFormat = resources.GetString("dtmFromDate.CustomFormat");
			this.dtmFromDate.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmFromDate.DaylightTimeAdjustment")));
			this.dtmFromDate.DisplayFormat.CustomFormat = resources.GetString("dtmFromDate.DisplayFormat.CustomFormat");
			this.dtmFromDate.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDate.DisplayFormat.FormatType")));
			this.dtmFromDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmFromDate.DisplayFormat.Inherit")));
			this.dtmFromDate.DisplayFormat.NullText = resources.GetString("dtmFromDate.DisplayFormat.NullText");
			this.dtmFromDate.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.DisplayFormat.TrimEnd")));
			this.dtmFromDate.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmFromDate.DisplayFormat.TrimStart")));
			this.dtmFromDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmFromDate.Dock")));
			this.dtmFromDate.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmFromDate.DropDownFormAlign")));
			this.dtmFromDate.EditFormat.CustomFormat = resources.GetString("dtmFromDate.EditFormat.CustomFormat");
			this.dtmFromDate.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDate.EditFormat.FormatType")));
			this.dtmFromDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmFromDate.EditFormat.Inherit")));
			this.dtmFromDate.EditFormat.NullText = resources.GetString("dtmFromDate.EditFormat.NullText");
			this.dtmFromDate.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.EditFormat.TrimEnd")));
			this.dtmFromDate.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmFromDate.EditFormat.TrimStart")));
			this.dtmFromDate.EditMask = resources.GetString("dtmFromDate.EditMask");
			this.dtmFromDate.EmptyAsNull = ((bool)(resources.GetObject("dtmFromDate.EmptyAsNull")));
			this.dtmFromDate.Enabled = ((bool)(resources.GetObject("dtmFromDate.Enabled")));
			this.dtmFromDate.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmFromDate.ErrorInfo.BeepOnError")));
			this.dtmFromDate.ErrorInfo.ErrorMessage = resources.GetString("dtmFromDate.ErrorInfo.ErrorMessage");
			this.dtmFromDate.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmFromDate.ErrorInfo.ErrorMessageCaption");
			this.dtmFromDate.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmFromDate.ErrorInfo.ShowErrorMessage")));
			this.dtmFromDate.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmFromDate.ErrorInfo.ValueOnError")));
			this.dtmFromDate.Font = ((System.Drawing.Font)(resources.GetObject("dtmFromDate.Font")));
			this.dtmFromDate.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDate.FormatType")));
			this.dtmFromDate.GapHeight = ((int)(resources.GetObject("dtmFromDate.GapHeight")));
			this.dtmFromDate.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmFromDate.GMTOffset")));
			this.dtmFromDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmFromDate.ImeMode")));
			this.dtmFromDate.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmFromDate.InitialSelection")));
			this.dtmFromDate.Location = ((System.Drawing.Point)(resources.GetObject("dtmFromDate.Location")));
			this.dtmFromDate.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmFromDate.MaskInfo.AutoTabWhenFilled")));
			this.dtmFromDate.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.MaskInfo.CaseSensitive")));
			this.dtmFromDate.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmFromDate.MaskInfo.CopyWithLiterals")));
			this.dtmFromDate.MaskInfo.EditMask = resources.GetString("dtmFromDate.MaskInfo.EditMask");
			this.dtmFromDate.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmFromDate.MaskInfo.EmptyAsNull")));
			this.dtmFromDate.MaskInfo.ErrorMessage = resources.GetString("dtmFromDate.MaskInfo.ErrorMessage");
			this.dtmFromDate.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmFromDate.MaskInfo.Inherit")));
			this.dtmFromDate.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmFromDate.MaskInfo.PromptChar")));
			this.dtmFromDate.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmFromDate.MaskInfo.ShowLiterals")));
			this.dtmFromDate.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmFromDate.MaskInfo.StoredEmptyChar")));
			this.dtmFromDate.MaxLength = ((int)(resources.GetObject("dtmFromDate.MaxLength")));
			this.dtmFromDate.Name = "dtmFromDate";
			this.dtmFromDate.NullText = resources.GetString("dtmFromDate.NullText");
			this.dtmFromDate.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.ParseInfo.CaseSensitive")));
			this.dtmFromDate.ParseInfo.CustomFormat = resources.GetString("dtmFromDate.ParseInfo.CustomFormat");
			this.dtmFromDate.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmFromDate.ParseInfo.DateTimeStyle")));
			this.dtmFromDate.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmFromDate.ParseInfo.EmptyAsNull")));
			this.dtmFromDate.ParseInfo.ErrorMessage = resources.GetString("dtmFromDate.ParseInfo.ErrorMessage");
			this.dtmFromDate.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmFromDate.ParseInfo.FormatType")));
			this.dtmFromDate.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmFromDate.ParseInfo.Inherit")));
			this.dtmFromDate.ParseInfo.NullText = resources.GetString("dtmFromDate.ParseInfo.NullText");
			this.dtmFromDate.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.ParseInfo.TrimEnd")));
			this.dtmFromDate.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmFromDate.ParseInfo.TrimStart")));
			this.dtmFromDate.PasswordChar = ((char)(resources.GetObject("dtmFromDate.PasswordChar")));
			this.dtmFromDate.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.PostValidation.CaseSensitive")));
			this.dtmFromDate.PostValidation.ErrorMessage = resources.GetString("dtmFromDate.PostValidation.ErrorMessage");
			this.dtmFromDate.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmFromDate.PostValidation.Inherit")));
			this.dtmFromDate.PostValidation.Intervals.AddRange(new C1.Win.C1Input.ValueInterval[] {
																									  ((C1.Win.C1Input.ValueInterval)(resources.GetObject("dtmFromDate.PostValidation.Intervals")))});
			this.dtmFromDate.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmFromDate.PostValidation.Validation")));
			this.dtmFromDate.PostValidation.Values = ((System.Array)(resources.GetObject("dtmFromDate.PostValidation.Values")));
			this.dtmFromDate.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmFromDate.PostValidation.ValuesExcluded")));
			this.dtmFromDate.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmFromDate.PreValidation.CaseSensitive")));
			this.dtmFromDate.PreValidation.ErrorMessage = resources.GetString("dtmFromDate.PreValidation.ErrorMessage");
			this.dtmFromDate.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmFromDate.PreValidation.Inherit")));
			this.dtmFromDate.PreValidation.ItemSeparator = resources.GetString("dtmFromDate.PreValidation.ItemSeparator");
			this.dtmFromDate.PreValidation.PatternString = resources.GetString("dtmFromDate.PreValidation.PatternString");
			this.dtmFromDate.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmFromDate.PreValidation.RegexOptions")));
			this.dtmFromDate.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.PreValidation.TrimEnd")));
			this.dtmFromDate.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmFromDate.PreValidation.TrimStart")));
			this.dtmFromDate.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmFromDate.PreValidation.Validation")));
			this.dtmFromDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmFromDate.RightToLeft")));
			this.dtmFromDate.ShowFocusRectangle = ((bool)(resources.GetObject("dtmFromDate.ShowFocusRectangle")));
			this.dtmFromDate.Size = ((System.Drawing.Size)(resources.GetObject("dtmFromDate.Size")));
			this.dtmFromDate.TabIndex = ((int)(resources.GetObject("dtmFromDate.TabIndex")));
			this.dtmFromDate.Tag = ((object)(resources.GetObject("dtmFromDate.Tag")));
			this.dtmFromDate.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmFromDate.TextAlign")));
			this.dtmFromDate.TrimEnd = ((bool)(resources.GetObject("dtmFromDate.TrimEnd")));
			this.dtmFromDate.TrimStart = ((bool)(resources.GetObject("dtmFromDate.TrimStart")));
			this.dtmFromDate.UserCultureOverride = ((bool)(resources.GetObject("dtmFromDate.UserCultureOverride")));
			this.dtmFromDate.Value = ((object)(resources.GetObject("dtmFromDate.Value")));
			this.dtmFromDate.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmFromDate.VerticalAlign")));
			this.dtmFromDate.Visible = ((bool)(resources.GetObject("dtmFromDate.Visible")));
			this.dtmFromDate.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmFromDate.VisibleButtons")));
			this.dtmFromDate.TextChanged += new System.EventHandler(this.dtmToDate_TextChanged);
			this.dtmFromDate.Leave += new System.EventHandler(this.dtmToDate_TextChanged);
			// 
			// btnCycleSearch
			// 
			this.btnCycleSearch.AccessibleDescription = resources.GetString("btnCycleSearch.AccessibleDescription");
			this.btnCycleSearch.AccessibleName = resources.GetString("btnCycleSearch.AccessibleName");
			this.btnCycleSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("btnCycleSearch.Anchor")));
			this.btnCycleSearch.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnCycleSearch.BackgroundImage")));
			this.btnCycleSearch.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("btnCycleSearch.Dock")));
			this.btnCycleSearch.Enabled = ((bool)(resources.GetObject("btnCycleSearch.Enabled")));
			this.btnCycleSearch.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("btnCycleSearch.FlatStyle")));
			this.btnCycleSearch.Font = ((System.Drawing.Font)(resources.GetObject("btnCycleSearch.Font")));
			this.btnCycleSearch.Image = ((System.Drawing.Image)(resources.GetObject("btnCycleSearch.Image")));
			this.btnCycleSearch.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnCycleSearch.ImageAlign")));
			this.btnCycleSearch.ImageIndex = ((int)(resources.GetObject("btnCycleSearch.ImageIndex")));
			this.btnCycleSearch.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("btnCycleSearch.ImeMode")));
			this.btnCycleSearch.Location = ((System.Drawing.Point)(resources.GetObject("btnCycleSearch.Location")));
			this.btnCycleSearch.Name = "btnCycleSearch";
			this.btnCycleSearch.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("btnCycleSearch.RightToLeft")));
			this.btnCycleSearch.Size = ((System.Drawing.Size)(resources.GetObject("btnCycleSearch.Size")));
			this.btnCycleSearch.TabIndex = ((int)(resources.GetObject("btnCycleSearch.TabIndex")));
			this.btnCycleSearch.Text = resources.GetString("btnCycleSearch.Text");
			this.btnCycleSearch.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("btnCycleSearch.TextAlign")));
			this.btnCycleSearch.Visible = ((bool)(resources.GetObject("btnCycleSearch.Visible")));
			this.btnCycleSearch.Click += new System.EventHandler(this.btnCycleSearch_Click);
			// 
			// txtCycle
			// 
			this.txtCycle.AccessibleDescription = resources.GetString("txtCycle.AccessibleDescription");
			this.txtCycle.AccessibleName = resources.GetString("txtCycle.AccessibleName");
			this.txtCycle.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtCycle.Anchor")));
			this.txtCycle.AutoSize = ((bool)(resources.GetObject("txtCycle.AutoSize")));
			this.txtCycle.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtCycle.BackgroundImage")));
			this.txtCycle.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtCycle.Dock")));
			this.txtCycle.Enabled = ((bool)(resources.GetObject("txtCycle.Enabled")));
			this.txtCycle.Font = ((System.Drawing.Font)(resources.GetObject("txtCycle.Font")));
			this.txtCycle.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtCycle.ImeMode")));
			this.txtCycle.Location = ((System.Drawing.Point)(resources.GetObject("txtCycle.Location")));
			this.txtCycle.MaxLength = ((int)(resources.GetObject("txtCycle.MaxLength")));
			this.txtCycle.Multiline = ((bool)(resources.GetObject("txtCycle.Multiline")));
			this.txtCycle.Name = "txtCycle";
			this.txtCycle.PasswordChar = ((char)(resources.GetObject("txtCycle.PasswordChar")));
			this.txtCycle.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtCycle.RightToLeft")));
			this.txtCycle.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("txtCycle.ScrollBars")));
			this.txtCycle.Size = ((System.Drawing.Size)(resources.GetObject("txtCycle.Size")));
			this.txtCycle.TabIndex = ((int)(resources.GetObject("txtCycle.TabIndex")));
			this.txtCycle.Text = resources.GetString("txtCycle.Text");
			this.txtCycle.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtCycle.TextAlign")));
			this.txtCycle.Visible = ((bool)(resources.GetObject("txtCycle.Visible")));
			this.txtCycle.WordWrap = ((bool)(resources.GetObject("txtCycle.WordWrap")));
			this.txtCycle.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtCycle_KeyDown);
			this.txtCycle.Leave += new System.EventHandler(this.txtCycle_Leave);
			this.txtCycle.Enter += new System.EventHandler(this.OnEnterControl);
			// 
			// dtmToDate
			// 
			this.dtmToDate.AcceptsEscape = ((bool)(resources.GetObject("dtmToDate.AcceptsEscape")));
			this.dtmToDate.AccessibleDescription = resources.GetString("dtmToDate.AccessibleDescription");
			this.dtmToDate.AccessibleName = resources.GetString("dtmToDate.AccessibleName");
			this.dtmToDate.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("dtmToDate.Anchor")));
			this.dtmToDate.AutoSize = ((bool)(resources.GetObject("dtmToDate.AutoSize")));
			this.dtmToDate.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmToDate.BackgroundImage")));
			this.dtmToDate.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("dtmToDate.BorderStyle")));
			// 
			// dtmToDate.Calendar
			// 
			this.dtmToDate.Calendar.AccessibleDescription = resources.GetString("dtmToDate.Calendar.AccessibleDescription");
			this.dtmToDate.Calendar.AccessibleName = resources.GetString("dtmToDate.Calendar.AccessibleName");
			this.dtmToDate.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmToDate.Calendar.AnnuallyBoldedDates")));
			this.dtmToDate.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("dtmToDate.Calendar.BackgroundImage")));
			this.dtmToDate.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("dtmToDate.Calendar.BoldedDates")));
			this.dtmToDate.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("dtmToDate.Calendar.CalendarDimensions")));
			this.dtmToDate.Calendar.Enabled = ((bool)(resources.GetObject("dtmToDate.Calendar.Enabled")));
			this.dtmToDate.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("dtmToDate.Calendar.FirstDayOfWeek")));
			this.dtmToDate.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("dtmToDate.Calendar.Font")));
			this.dtmToDate.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmToDate.Calendar.ImeMode")));
			this.dtmToDate.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("dtmToDate.Calendar.MonthlyBoldedDates")));
			this.dtmToDate.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmToDate.Calendar.RightToLeft")));
			this.dtmToDate.Calendar.ShowClearButton = ((bool)(resources.GetObject("dtmToDate.Calendar.ShowClearButton")));
			this.dtmToDate.Calendar.ShowTodayButton = ((bool)(resources.GetObject("dtmToDate.Calendar.ShowTodayButton")));
			this.dtmToDate.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("dtmToDate.Calendar.ShowWeekNumbers")));
			this.dtmToDate.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.CaseSensitive")));
			this.dtmToDate.Culture = ((int)(resources.GetObject("dtmToDate.Culture")));
			this.dtmToDate.CurrentTimeZone = ((bool)(resources.GetObject("dtmToDate.CurrentTimeZone")));
			this.dtmToDate.CustomFormat = resources.GetString("dtmToDate.CustomFormat");
			this.dtmToDate.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("dtmToDate.DaylightTimeAdjustment")));
			this.dtmToDate.DisplayFormat.CustomFormat = resources.GetString("dtmToDate.DisplayFormat.CustomFormat");
			this.dtmToDate.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDate.DisplayFormat.FormatType")));
			this.dtmToDate.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmToDate.DisplayFormat.Inherit")));
			this.dtmToDate.DisplayFormat.NullText = resources.GetString("dtmToDate.DisplayFormat.NullText");
			this.dtmToDate.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("dtmToDate.DisplayFormat.TrimEnd")));
			this.dtmToDate.DisplayFormat.TrimStart = ((bool)(resources.GetObject("dtmToDate.DisplayFormat.TrimStart")));
			this.dtmToDate.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("dtmToDate.Dock")));
			this.dtmToDate.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("dtmToDate.DropDownFormAlign")));
			this.dtmToDate.EditFormat.CustomFormat = resources.GetString("dtmToDate.EditFormat.CustomFormat");
			this.dtmToDate.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDate.EditFormat.FormatType")));
			this.dtmToDate.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("dtmToDate.EditFormat.Inherit")));
			this.dtmToDate.EditFormat.NullText = resources.GetString("dtmToDate.EditFormat.NullText");
			this.dtmToDate.EditFormat.TrimEnd = ((bool)(resources.GetObject("dtmToDate.EditFormat.TrimEnd")));
			this.dtmToDate.EditFormat.TrimStart = ((bool)(resources.GetObject("dtmToDate.EditFormat.TrimStart")));
			this.dtmToDate.EditMask = resources.GetString("dtmToDate.EditMask");
			this.dtmToDate.EmptyAsNull = ((bool)(resources.GetObject("dtmToDate.EmptyAsNull")));
			this.dtmToDate.Enabled = ((bool)(resources.GetObject("dtmToDate.Enabled")));
			this.dtmToDate.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("dtmToDate.ErrorInfo.BeepOnError")));
			this.dtmToDate.ErrorInfo.ErrorMessage = resources.GetString("dtmToDate.ErrorInfo.ErrorMessage");
			this.dtmToDate.ErrorInfo.ErrorMessageCaption = resources.GetString("dtmToDate.ErrorInfo.ErrorMessageCaption");
			this.dtmToDate.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("dtmToDate.ErrorInfo.ShowErrorMessage")));
			this.dtmToDate.ErrorInfo.ValueOnError = ((object)(resources.GetObject("dtmToDate.ErrorInfo.ValueOnError")));
			this.dtmToDate.Font = ((System.Drawing.Font)(resources.GetObject("dtmToDate.Font")));
			this.dtmToDate.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDate.FormatType")));
			this.dtmToDate.GapHeight = ((int)(resources.GetObject("dtmToDate.GapHeight")));
			this.dtmToDate.GMTOffset = ((System.TimeSpan)(resources.GetObject("dtmToDate.GMTOffset")));
			this.dtmToDate.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("dtmToDate.ImeMode")));
			this.dtmToDate.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("dtmToDate.InitialSelection")));
			this.dtmToDate.Location = ((System.Drawing.Point)(resources.GetObject("dtmToDate.Location")));
			this.dtmToDate.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("dtmToDate.MaskInfo.AutoTabWhenFilled")));
			this.dtmToDate.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.MaskInfo.CaseSensitive")));
			this.dtmToDate.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("dtmToDate.MaskInfo.CopyWithLiterals")));
			this.dtmToDate.MaskInfo.EditMask = resources.GetString("dtmToDate.MaskInfo.EditMask");
			this.dtmToDate.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmToDate.MaskInfo.EmptyAsNull")));
			this.dtmToDate.MaskInfo.ErrorMessage = resources.GetString("dtmToDate.MaskInfo.ErrorMessage");
			this.dtmToDate.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("dtmToDate.MaskInfo.Inherit")));
			this.dtmToDate.MaskInfo.PromptChar = ((char)(resources.GetObject("dtmToDate.MaskInfo.PromptChar")));
			this.dtmToDate.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("dtmToDate.MaskInfo.ShowLiterals")));
			this.dtmToDate.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("dtmToDate.MaskInfo.StoredEmptyChar")));
			this.dtmToDate.MaxLength = ((int)(resources.GetObject("dtmToDate.MaxLength")));
			this.dtmToDate.Name = "dtmToDate";
			this.dtmToDate.NullText = resources.GetString("dtmToDate.NullText");
			this.dtmToDate.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.ParseInfo.CaseSensitive")));
			this.dtmToDate.ParseInfo.CustomFormat = resources.GetString("dtmToDate.ParseInfo.CustomFormat");
			this.dtmToDate.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("dtmToDate.ParseInfo.DateTimeStyle")));
			this.dtmToDate.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("dtmToDate.ParseInfo.EmptyAsNull")));
			this.dtmToDate.ParseInfo.ErrorMessage = resources.GetString("dtmToDate.ParseInfo.ErrorMessage");
			this.dtmToDate.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("dtmToDate.ParseInfo.FormatType")));
			this.dtmToDate.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("dtmToDate.ParseInfo.Inherit")));
			this.dtmToDate.ParseInfo.NullText = resources.GetString("dtmToDate.ParseInfo.NullText");
			this.dtmToDate.ParseInfo.TrimEnd = ((bool)(resources.GetObject("dtmToDate.ParseInfo.TrimEnd")));
			this.dtmToDate.ParseInfo.TrimStart = ((bool)(resources.GetObject("dtmToDate.ParseInfo.TrimStart")));
			this.dtmToDate.PasswordChar = ((char)(resources.GetObject("dtmToDate.PasswordChar")));
			this.dtmToDate.PostValidation.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.PostValidation.CaseSensitive")));
			this.dtmToDate.PostValidation.ErrorMessage = resources.GetString("dtmToDate.PostValidation.ErrorMessage");
			this.dtmToDate.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("dtmToDate.PostValidation.Inherit")));
			this.dtmToDate.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("dtmToDate.PostValidation.Validation")));
			this.dtmToDate.PostValidation.Values = ((System.Array)(resources.GetObject("dtmToDate.PostValidation.Values")));
			this.dtmToDate.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("dtmToDate.PostValidation.ValuesExcluded")));
			this.dtmToDate.PreValidation.CaseSensitive = ((bool)(resources.GetObject("dtmToDate.PreValidation.CaseSensitive")));
			this.dtmToDate.PreValidation.ErrorMessage = resources.GetString("dtmToDate.PreValidation.ErrorMessage");
			this.dtmToDate.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("dtmToDate.PreValidation.Inherit")));
			this.dtmToDate.PreValidation.ItemSeparator = resources.GetString("dtmToDate.PreValidation.ItemSeparator");
			this.dtmToDate.PreValidation.PatternString = resources.GetString("dtmToDate.PreValidation.PatternString");
			this.dtmToDate.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("dtmToDate.PreValidation.RegexOptions")));
			this.dtmToDate.PreValidation.TrimEnd = ((bool)(resources.GetObject("dtmToDate.PreValidation.TrimEnd")));
			this.dtmToDate.PreValidation.TrimStart = ((bool)(resources.GetObject("dtmToDate.PreValidation.TrimStart")));
			this.dtmToDate.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("dtmToDate.PreValidation.Validation")));
			this.dtmToDate.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("dtmToDate.RightToLeft")));
			this.dtmToDate.ShowFocusRectangle = ((bool)(resources.GetObject("dtmToDate.ShowFocusRectangle")));
			this.dtmToDate.Size = ((System.Drawing.Size)(resources.GetObject("dtmToDate.Size")));
			this.dtmToDate.TabIndex = ((int)(resources.GetObject("dtmToDate.TabIndex")));
			this.dtmToDate.Tag = ((object)(resources.GetObject("dtmToDate.Tag")));
			this.dtmToDate.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("dtmToDate.TextAlign")));
			this.dtmToDate.TrimEnd = ((bool)(resources.GetObject("dtmToDate.TrimEnd")));
			this.dtmToDate.TrimStart = ((bool)(resources.GetObject("dtmToDate.TrimStart")));
			this.dtmToDate.UserCultureOverride = ((bool)(resources.GetObject("dtmToDate.UserCultureOverride")));
			this.dtmToDate.Value = ((object)(resources.GetObject("dtmToDate.Value")));
			this.dtmToDate.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("dtmToDate.VerticalAlign")));
			this.dtmToDate.Visible = ((bool)(resources.GetObject("dtmToDate.Visible")));
			this.dtmToDate.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("dtmToDate.VisibleButtons")));
			this.dtmToDate.TextChanged += new System.EventHandler(this.dtmToDate_TextChanged);
			this.dtmToDate.Leave += new System.EventHandler(this.dtmToDate_TextChanged);
			// 
			// lblPlanHorizon
			// 
			this.lblPlanHorizon.AccessibleDescription = resources.GetString("lblPlanHorizon.AccessibleDescription");
			this.lblPlanHorizon.AccessibleName = resources.GetString("lblPlanHorizon.AccessibleName");
			this.lblPlanHorizon.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblPlanHorizon.Anchor")));
			this.lblPlanHorizon.AutoSize = ((bool)(resources.GetObject("lblPlanHorizon.AutoSize")));
			this.lblPlanHorizon.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblPlanHorizon.Dock")));
			this.lblPlanHorizon.Enabled = ((bool)(resources.GetObject("lblPlanHorizon.Enabled")));
			this.lblPlanHorizon.Font = ((System.Drawing.Font)(resources.GetObject("lblPlanHorizon.Font")));
			this.lblPlanHorizon.Image = ((System.Drawing.Image)(resources.GetObject("lblPlanHorizon.Image")));
			this.lblPlanHorizon.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPlanHorizon.ImageAlign")));
			this.lblPlanHorizon.ImageIndex = ((int)(resources.GetObject("lblPlanHorizon.ImageIndex")));
			this.lblPlanHorizon.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblPlanHorizon.ImeMode")));
			this.lblPlanHorizon.Location = ((System.Drawing.Point)(resources.GetObject("lblPlanHorizon.Location")));
			this.lblPlanHorizon.Name = "lblPlanHorizon";
			this.lblPlanHorizon.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblPlanHorizon.RightToLeft")));
			this.lblPlanHorizon.Size = ((System.Drawing.Size)(resources.GetObject("lblPlanHorizon.Size")));
			this.lblPlanHorizon.TabIndex = ((int)(resources.GetObject("lblPlanHorizon.TabIndex")));
			this.lblPlanHorizon.Text = resources.GetString("lblPlanHorizon.Text");
			this.lblPlanHorizon.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblPlanHorizon.TextAlign")));
			this.lblPlanHorizon.Visible = ((bool)(resources.GetObject("lblPlanHorizon.Visible")));
			this.lblPlanHorizon.Click += new System.EventHandler(this.lblPlanHorizon_Click);
			// 
			// txtPlanHorizon
			// 
			this.txtPlanHorizon.AcceptsEscape = ((bool)(resources.GetObject("txtPlanHorizon.AcceptsEscape")));
			this.txtPlanHorizon.AccessibleDescription = resources.GetString("txtPlanHorizon.AccessibleDescription");
			this.txtPlanHorizon.AccessibleName = resources.GetString("txtPlanHorizon.AccessibleName");
			this.txtPlanHorizon.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtPlanHorizon.Anchor")));
			this.txtPlanHorizon.AutoSize = ((bool)(resources.GetObject("txtPlanHorizon.AutoSize")));
			this.txtPlanHorizon.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtPlanHorizon.BackgroundImage")));
			this.txtPlanHorizon.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("txtPlanHorizon.BorderStyle")));
			// 
			// txtPlanHorizon.Calculator
			// 
			this.txtPlanHorizon.Calculator.AccessibleDescription = resources.GetString("txtPlanHorizon.Calculator.AccessibleDescription");
			this.txtPlanHorizon.Calculator.AccessibleName = resources.GetString("txtPlanHorizon.Calculator.AccessibleName");
			this.txtPlanHorizon.Calculator.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtPlanHorizon.Calculator.BackgroundImage")));
			this.txtPlanHorizon.Calculator.ButtonFlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("txtPlanHorizon.Calculator.ButtonFlatStyle")));
			this.txtPlanHorizon.Calculator.DisplayFormat = resources.GetString("txtPlanHorizon.Calculator.DisplayFormat");
			this.txtPlanHorizon.Calculator.Font = ((System.Drawing.Font)(resources.GetObject("txtPlanHorizon.Calculator.Font")));
			this.txtPlanHorizon.Calculator.FormatOnClose = ((bool)(resources.GetObject("txtPlanHorizon.Calculator.FormatOnClose")));
			this.txtPlanHorizon.Calculator.StoredFormat = resources.GetString("txtPlanHorizon.Calculator.StoredFormat");
			this.txtPlanHorizon.Calculator.UIStrings.Content = ((string[])(resources.GetObject("txtPlanHorizon.Calculator.UIStrings.Content")));
			this.txtPlanHorizon.CaseSensitive = ((bool)(resources.GetObject("txtPlanHorizon.CaseSensitive")));
			this.txtPlanHorizon.Culture = ((int)(resources.GetObject("txtPlanHorizon.Culture")));
			this.txtPlanHorizon.CustomFormat = resources.GetString("txtPlanHorizon.CustomFormat");
			this.txtPlanHorizon.DataType = ((System.Type)(resources.GetObject("txtPlanHorizon.DataType")));
			this.txtPlanHorizon.DisplayFormat.CustomFormat = resources.GetString("txtPlanHorizon.DisplayFormat.CustomFormat");
			this.txtPlanHorizon.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtPlanHorizon.DisplayFormat.FormatType")));
			this.txtPlanHorizon.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("txtPlanHorizon.DisplayFormat.Inherit")));
			this.txtPlanHorizon.DisplayFormat.NullText = resources.GetString("txtPlanHorizon.DisplayFormat.NullText");
			this.txtPlanHorizon.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("txtPlanHorizon.DisplayFormat.TrimEnd")));
			this.txtPlanHorizon.DisplayFormat.TrimStart = ((bool)(resources.GetObject("txtPlanHorizon.DisplayFormat.TrimStart")));
			this.txtPlanHorizon.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtPlanHorizon.Dock")));
			this.txtPlanHorizon.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("txtPlanHorizon.DropDownFormAlign")));
			this.txtPlanHorizon.EditFormat.CustomFormat = resources.GetString("txtPlanHorizon.EditFormat.CustomFormat");
			this.txtPlanHorizon.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtPlanHorizon.EditFormat.FormatType")));
			this.txtPlanHorizon.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("txtPlanHorizon.EditFormat.Inherit")));
			this.txtPlanHorizon.EditFormat.NullText = resources.GetString("txtPlanHorizon.EditFormat.NullText");
			this.txtPlanHorizon.EditFormat.TrimEnd = ((bool)(resources.GetObject("txtPlanHorizon.EditFormat.TrimEnd")));
			this.txtPlanHorizon.EditFormat.TrimStart = ((bool)(resources.GetObject("txtPlanHorizon.EditFormat.TrimStart")));
			this.txtPlanHorizon.EditMask = resources.GetString("txtPlanHorizon.EditMask");
			this.txtPlanHorizon.EmptyAsNull = ((bool)(resources.GetObject("txtPlanHorizon.EmptyAsNull")));
			this.txtPlanHorizon.Enabled = ((bool)(resources.GetObject("txtPlanHorizon.Enabled")));
			this.txtPlanHorizon.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("txtPlanHorizon.ErrorInfo.BeepOnError")));
			this.txtPlanHorizon.ErrorInfo.ErrorMessage = resources.GetString("txtPlanHorizon.ErrorInfo.ErrorMessage");
			this.txtPlanHorizon.ErrorInfo.ErrorMessageCaption = resources.GetString("txtPlanHorizon.ErrorInfo.ErrorMessageCaption");
			this.txtPlanHorizon.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("txtPlanHorizon.ErrorInfo.ShowErrorMessage")));
			this.txtPlanHorizon.ErrorInfo.ValueOnError = ((object)(resources.GetObject("txtPlanHorizon.ErrorInfo.ValueOnError")));
			this.txtPlanHorizon.Font = ((System.Drawing.Font)(resources.GetObject("txtPlanHorizon.Font")));
			this.txtPlanHorizon.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtPlanHorizon.FormatType")));
			this.txtPlanHorizon.GapHeight = ((int)(resources.GetObject("txtPlanHorizon.GapHeight")));
			this.txtPlanHorizon.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtPlanHorizon.ImeMode")));
			this.txtPlanHorizon.Increment = ((object)(resources.GetObject("txtPlanHorizon.Increment")));
			this.txtPlanHorizon.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("txtPlanHorizon.InitialSelection")));
			this.txtPlanHorizon.Location = ((System.Drawing.Point)(resources.GetObject("txtPlanHorizon.Location")));
			this.txtPlanHorizon.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("txtPlanHorizon.MaskInfo.AutoTabWhenFilled")));
			this.txtPlanHorizon.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("txtPlanHorizon.MaskInfo.CaseSensitive")));
			this.txtPlanHorizon.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("txtPlanHorizon.MaskInfo.CopyWithLiterals")));
			this.txtPlanHorizon.MaskInfo.EditMask = resources.GetString("txtPlanHorizon.MaskInfo.EditMask");
			this.txtPlanHorizon.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("txtPlanHorizon.MaskInfo.EmptyAsNull")));
			this.txtPlanHorizon.MaskInfo.ErrorMessage = resources.GetString("txtPlanHorizon.MaskInfo.ErrorMessage");
			this.txtPlanHorizon.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("txtPlanHorizon.MaskInfo.Inherit")));
			this.txtPlanHorizon.MaskInfo.PromptChar = ((char)(resources.GetObject("txtPlanHorizon.MaskInfo.PromptChar")));
			this.txtPlanHorizon.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("txtPlanHorizon.MaskInfo.ShowLiterals")));
			this.txtPlanHorizon.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("txtPlanHorizon.MaskInfo.StoredEmptyChar")));
			this.txtPlanHorizon.MaxLength = ((int)(resources.GetObject("txtPlanHorizon.MaxLength")));
			this.txtPlanHorizon.Name = "txtPlanHorizon";
			this.txtPlanHorizon.NullText = resources.GetString("txtPlanHorizon.NullText");
			this.txtPlanHorizon.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("txtPlanHorizon.ParseInfo.CaseSensitive")));
			this.txtPlanHorizon.ParseInfo.CustomFormat = resources.GetString("txtPlanHorizon.ParseInfo.CustomFormat");
			this.txtPlanHorizon.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("txtPlanHorizon.ParseInfo.EmptyAsNull")));
			this.txtPlanHorizon.ParseInfo.ErrorMessage = resources.GetString("txtPlanHorizon.ParseInfo.ErrorMessage");
			this.txtPlanHorizon.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtPlanHorizon.ParseInfo.FormatType")));
			this.txtPlanHorizon.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("txtPlanHorizon.ParseInfo.Inherit")));
			this.txtPlanHorizon.ParseInfo.NullText = resources.GetString("txtPlanHorizon.ParseInfo.NullText");
			this.txtPlanHorizon.ParseInfo.NumberStyle = ((C1.Win.C1Input.NumberStyleFlags)(resources.GetObject("txtPlanHorizon.ParseInfo.NumberStyle")));
			this.txtPlanHorizon.ParseInfo.TrimEnd = ((bool)(resources.GetObject("txtPlanHorizon.ParseInfo.TrimEnd")));
			this.txtPlanHorizon.ParseInfo.TrimStart = ((bool)(resources.GetObject("txtPlanHorizon.ParseInfo.TrimStart")));
			this.txtPlanHorizon.PasswordChar = ((char)(resources.GetObject("txtPlanHorizon.PasswordChar")));
			this.txtPlanHorizon.PostValidation.CaseSensitive = ((bool)(resources.GetObject("txtPlanHorizon.PostValidation.CaseSensitive")));
			this.txtPlanHorizon.PostValidation.ErrorMessage = resources.GetString("txtPlanHorizon.PostValidation.ErrorMessage");
			this.txtPlanHorizon.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("txtPlanHorizon.PostValidation.Inherit")));
			this.txtPlanHorizon.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("txtPlanHorizon.PostValidation.Validation")));
			this.txtPlanHorizon.PostValidation.Values = ((System.Array)(resources.GetObject("txtPlanHorizon.PostValidation.Values")));
			this.txtPlanHorizon.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("txtPlanHorizon.PostValidation.ValuesExcluded")));
			this.txtPlanHorizon.PreValidation.CaseSensitive = ((bool)(resources.GetObject("txtPlanHorizon.PreValidation.CaseSensitive")));
			this.txtPlanHorizon.PreValidation.ErrorMessage = resources.GetString("txtPlanHorizon.PreValidation.ErrorMessage");
			this.txtPlanHorizon.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("txtPlanHorizon.PreValidation.Inherit")));
			this.txtPlanHorizon.PreValidation.ItemSeparator = resources.GetString("txtPlanHorizon.PreValidation.ItemSeparator");
			this.txtPlanHorizon.PreValidation.PatternString = resources.GetString("txtPlanHorizon.PreValidation.PatternString");
			this.txtPlanHorizon.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("txtPlanHorizon.PreValidation.RegexOptions")));
			this.txtPlanHorizon.PreValidation.TrimEnd = ((bool)(resources.GetObject("txtPlanHorizon.PreValidation.TrimEnd")));
			this.txtPlanHorizon.PreValidation.TrimStart = ((bool)(resources.GetObject("txtPlanHorizon.PreValidation.TrimStart")));
			this.txtPlanHorizon.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("txtPlanHorizon.PreValidation.Validation")));
			this.txtPlanHorizon.ReadOnly = true;
			this.txtPlanHorizon.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtPlanHorizon.RightToLeft")));
			this.txtPlanHorizon.ShowFocusRectangle = ((bool)(resources.GetObject("txtPlanHorizon.ShowFocusRectangle")));
			this.txtPlanHorizon.Size = ((System.Drawing.Size)(resources.GetObject("txtPlanHorizon.Size")));
			this.txtPlanHorizon.TabIndex = ((int)(resources.GetObject("txtPlanHorizon.TabIndex")));
			this.txtPlanHorizon.Tag = ((object)(resources.GetObject("txtPlanHorizon.Tag")));
			this.txtPlanHorizon.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtPlanHorizon.TextAlign")));
			this.txtPlanHorizon.TrimEnd = ((bool)(resources.GetObject("txtPlanHorizon.TrimEnd")));
			this.txtPlanHorizon.TrimStart = ((bool)(resources.GetObject("txtPlanHorizon.TrimStart")));
			this.txtPlanHorizon.UserCultureOverride = ((bool)(resources.GetObject("txtPlanHorizon.UserCultureOverride")));
			this.txtPlanHorizon.Value = ((object)(resources.GetObject("txtPlanHorizon.Value")));
			this.txtPlanHorizon.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("txtPlanHorizon.VerticalAlign")));
			this.txtPlanHorizon.Visible = ((bool)(resources.GetObject("txtPlanHorizon.Visible")));
			this.txtPlanHorizon.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("txtPlanHorizon.VisibleButtons")));
			// 
			// txtGenDateTime
			// 
			this.txtGenDateTime.AcceptsEscape = ((bool)(resources.GetObject("txtGenDateTime.AcceptsEscape")));
			this.txtGenDateTime.AccessibleDescription = resources.GetString("txtGenDateTime.AccessibleDescription");
			this.txtGenDateTime.AccessibleName = resources.GetString("txtGenDateTime.AccessibleName");
			this.txtGenDateTime.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("txtGenDateTime.Anchor")));
			this.txtGenDateTime.AutoSize = ((bool)(resources.GetObject("txtGenDateTime.AutoSize")));
			this.txtGenDateTime.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtGenDateTime.BackgroundImage")));
			this.txtGenDateTime.BorderStyle = ((System.Windows.Forms.BorderStyle)(resources.GetObject("txtGenDateTime.BorderStyle")));
			// 
			// txtGenDateTime.Calendar
			// 
			this.txtGenDateTime.Calendar.AccessibleDescription = resources.GetString("txtGenDateTime.Calendar.AccessibleDescription");
			this.txtGenDateTime.Calendar.AccessibleName = resources.GetString("txtGenDateTime.Calendar.AccessibleName");
			this.txtGenDateTime.Calendar.AnnuallyBoldedDates = ((System.DateTime[])(resources.GetObject("txtGenDateTime.Calendar.AnnuallyBoldedDates")));
			this.txtGenDateTime.Calendar.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("txtGenDateTime.Calendar.BackgroundImage")));
			this.txtGenDateTime.Calendar.BoldedDates = ((System.DateTime[])(resources.GetObject("txtGenDateTime.Calendar.BoldedDates")));
			this.txtGenDateTime.Calendar.CalendarDimensions = ((System.Drawing.Size)(resources.GetObject("txtGenDateTime.Calendar.CalendarDimensions")));
			this.txtGenDateTime.Calendar.Enabled = ((bool)(resources.GetObject("txtGenDateTime.Calendar.Enabled")));
			this.txtGenDateTime.Calendar.FirstDayOfWeek = ((System.Windows.Forms.Day)(resources.GetObject("txtGenDateTime.Calendar.FirstDayOfWeek")));
			this.txtGenDateTime.Calendar.Font = ((System.Drawing.Font)(resources.GetObject("txtGenDateTime.Calendar.Font")));
			this.txtGenDateTime.Calendar.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtGenDateTime.Calendar.ImeMode")));
			this.txtGenDateTime.Calendar.MonthlyBoldedDates = ((System.DateTime[])(resources.GetObject("txtGenDateTime.Calendar.MonthlyBoldedDates")));
			this.txtGenDateTime.Calendar.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtGenDateTime.Calendar.RightToLeft")));
			this.txtGenDateTime.Calendar.ShowClearButton = ((bool)(resources.GetObject("txtGenDateTime.Calendar.ShowClearButton")));
			this.txtGenDateTime.Calendar.ShowTodayButton = ((bool)(resources.GetObject("txtGenDateTime.Calendar.ShowTodayButton")));
			this.txtGenDateTime.Calendar.ShowWeekNumbers = ((bool)(resources.GetObject("txtGenDateTime.Calendar.ShowWeekNumbers")));
			this.txtGenDateTime.CaseSensitive = ((bool)(resources.GetObject("txtGenDateTime.CaseSensitive")));
			this.txtGenDateTime.Culture = ((int)(resources.GetObject("txtGenDateTime.Culture")));
			this.txtGenDateTime.CurrentTimeZone = ((bool)(resources.GetObject("txtGenDateTime.CurrentTimeZone")));
			this.txtGenDateTime.CustomFormat = resources.GetString("txtGenDateTime.CustomFormat");
			this.txtGenDateTime.DaylightTimeAdjustment = ((C1.Win.C1Input.DaylightTimeAdjustmentEnum)(resources.GetObject("txtGenDateTime.DaylightTimeAdjustment")));
			this.txtGenDateTime.DisplayFormat.CustomFormat = resources.GetString("txtGenDateTime.DisplayFormat.CustomFormat");
			this.txtGenDateTime.DisplayFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtGenDateTime.DisplayFormat.FormatType")));
			this.txtGenDateTime.DisplayFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("txtGenDateTime.DisplayFormat.Inherit")));
			this.txtGenDateTime.DisplayFormat.NullText = resources.GetString("txtGenDateTime.DisplayFormat.NullText");
			this.txtGenDateTime.DisplayFormat.TrimEnd = ((bool)(resources.GetObject("txtGenDateTime.DisplayFormat.TrimEnd")));
			this.txtGenDateTime.DisplayFormat.TrimStart = ((bool)(resources.GetObject("txtGenDateTime.DisplayFormat.TrimStart")));
			this.txtGenDateTime.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("txtGenDateTime.Dock")));
			this.txtGenDateTime.DropDownFormAlign = ((C1.Win.C1Input.DropDownFormAlignmentEnum)(resources.GetObject("txtGenDateTime.DropDownFormAlign")));
			this.txtGenDateTime.EditFormat.CustomFormat = resources.GetString("txtGenDateTime.EditFormat.CustomFormat");
			this.txtGenDateTime.EditFormat.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtGenDateTime.EditFormat.FormatType")));
			this.txtGenDateTime.EditFormat.Inherit = ((C1.Win.C1Input.FormatInfoInheritFlags)(resources.GetObject("txtGenDateTime.EditFormat.Inherit")));
			this.txtGenDateTime.EditFormat.NullText = resources.GetString("txtGenDateTime.EditFormat.NullText");
			this.txtGenDateTime.EditFormat.TrimEnd = ((bool)(resources.GetObject("txtGenDateTime.EditFormat.TrimEnd")));
			this.txtGenDateTime.EditFormat.TrimStart = ((bool)(resources.GetObject("txtGenDateTime.EditFormat.TrimStart")));
			this.txtGenDateTime.EditMask = resources.GetString("txtGenDateTime.EditMask");
			this.txtGenDateTime.EmptyAsNull = ((bool)(resources.GetObject("txtGenDateTime.EmptyAsNull")));
			this.txtGenDateTime.Enabled = ((bool)(resources.GetObject("txtGenDateTime.Enabled")));
			this.txtGenDateTime.ErrorInfo.BeepOnError = ((bool)(resources.GetObject("txtGenDateTime.ErrorInfo.BeepOnError")));
			this.txtGenDateTime.ErrorInfo.ErrorMessage = resources.GetString("txtGenDateTime.ErrorInfo.ErrorMessage");
			this.txtGenDateTime.ErrorInfo.ErrorMessageCaption = resources.GetString("txtGenDateTime.ErrorInfo.ErrorMessageCaption");
			this.txtGenDateTime.ErrorInfo.ShowErrorMessage = ((bool)(resources.GetObject("txtGenDateTime.ErrorInfo.ShowErrorMessage")));
			this.txtGenDateTime.ErrorInfo.ValueOnError = ((object)(resources.GetObject("txtGenDateTime.ErrorInfo.ValueOnError")));
			this.txtGenDateTime.Font = ((System.Drawing.Font)(resources.GetObject("txtGenDateTime.Font")));
			this.txtGenDateTime.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtGenDateTime.FormatType")));
			this.txtGenDateTime.GapHeight = ((int)(resources.GetObject("txtGenDateTime.GapHeight")));
			this.txtGenDateTime.GMTOffset = ((System.TimeSpan)(resources.GetObject("txtGenDateTime.GMTOffset")));
			this.txtGenDateTime.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("txtGenDateTime.ImeMode")));
			this.txtGenDateTime.InitialSelection = ((C1.Win.C1Input.InitialSelectionEnum)(resources.GetObject("txtGenDateTime.InitialSelection")));
			this.txtGenDateTime.Location = ((System.Drawing.Point)(resources.GetObject("txtGenDateTime.Location")));
			this.txtGenDateTime.MaskInfo.AutoTabWhenFilled = ((bool)(resources.GetObject("txtGenDateTime.MaskInfo.AutoTabWhenFilled")));
			this.txtGenDateTime.MaskInfo.CaseSensitive = ((bool)(resources.GetObject("txtGenDateTime.MaskInfo.CaseSensitive")));
			this.txtGenDateTime.MaskInfo.CopyWithLiterals = ((bool)(resources.GetObject("txtGenDateTime.MaskInfo.CopyWithLiterals")));
			this.txtGenDateTime.MaskInfo.EditMask = resources.GetString("txtGenDateTime.MaskInfo.EditMask");
			this.txtGenDateTime.MaskInfo.EmptyAsNull = ((bool)(resources.GetObject("txtGenDateTime.MaskInfo.EmptyAsNull")));
			this.txtGenDateTime.MaskInfo.ErrorMessage = resources.GetString("txtGenDateTime.MaskInfo.ErrorMessage");
			this.txtGenDateTime.MaskInfo.Inherit = ((C1.Win.C1Input.MaskInfoInheritFlags)(resources.GetObject("txtGenDateTime.MaskInfo.Inherit")));
			this.txtGenDateTime.MaskInfo.PromptChar = ((char)(resources.GetObject("txtGenDateTime.MaskInfo.PromptChar")));
			this.txtGenDateTime.MaskInfo.ShowLiterals = ((C1.Win.C1Input.ShowLiteralsEnum)(resources.GetObject("txtGenDateTime.MaskInfo.ShowLiterals")));
			this.txtGenDateTime.MaskInfo.StoredEmptyChar = ((char)(resources.GetObject("txtGenDateTime.MaskInfo.StoredEmptyChar")));
			this.txtGenDateTime.MaxLength = ((int)(resources.GetObject("txtGenDateTime.MaxLength")));
			this.txtGenDateTime.Name = "txtGenDateTime";
			this.txtGenDateTime.NullText = resources.GetString("txtGenDateTime.NullText");
			this.txtGenDateTime.ParseInfo.CaseSensitive = ((bool)(resources.GetObject("txtGenDateTime.ParseInfo.CaseSensitive")));
			this.txtGenDateTime.ParseInfo.CustomFormat = resources.GetString("txtGenDateTime.ParseInfo.CustomFormat");
			this.txtGenDateTime.ParseInfo.DateTimeStyle = ((C1.Win.C1Input.DateTimeStyleFlags)(resources.GetObject("txtGenDateTime.ParseInfo.DateTimeStyle")));
			this.txtGenDateTime.ParseInfo.EmptyAsNull = ((bool)(resources.GetObject("txtGenDateTime.ParseInfo.EmptyAsNull")));
			this.txtGenDateTime.ParseInfo.ErrorMessage = resources.GetString("txtGenDateTime.ParseInfo.ErrorMessage");
			this.txtGenDateTime.ParseInfo.FormatType = ((C1.Win.C1Input.FormatTypeEnum)(resources.GetObject("txtGenDateTime.ParseInfo.FormatType")));
			this.txtGenDateTime.ParseInfo.Inherit = ((C1.Win.C1Input.ParseInfoInheritFlags)(resources.GetObject("txtGenDateTime.ParseInfo.Inherit")));
			this.txtGenDateTime.ParseInfo.NullText = resources.GetString("txtGenDateTime.ParseInfo.NullText");
			this.txtGenDateTime.ParseInfo.TrimEnd = ((bool)(resources.GetObject("txtGenDateTime.ParseInfo.TrimEnd")));
			this.txtGenDateTime.ParseInfo.TrimStart = ((bool)(resources.GetObject("txtGenDateTime.ParseInfo.TrimStart")));
			this.txtGenDateTime.PasswordChar = ((char)(resources.GetObject("txtGenDateTime.PasswordChar")));
			this.txtGenDateTime.PostValidation.CaseSensitive = ((bool)(resources.GetObject("txtGenDateTime.PostValidation.CaseSensitive")));
			this.txtGenDateTime.PostValidation.ErrorMessage = resources.GetString("txtGenDateTime.PostValidation.ErrorMessage");
			this.txtGenDateTime.PostValidation.Inherit = ((C1.Win.C1Input.PostValidationInheritFlags)(resources.GetObject("txtGenDateTime.PostValidation.Inherit")));
			this.txtGenDateTime.PostValidation.Validation = ((C1.Win.C1Input.PostValidationTypeEnum)(resources.GetObject("txtGenDateTime.PostValidation.Validation")));
			this.txtGenDateTime.PostValidation.Values = ((System.Array)(resources.GetObject("txtGenDateTime.PostValidation.Values")));
			this.txtGenDateTime.PostValidation.ValuesExcluded = ((System.Array)(resources.GetObject("txtGenDateTime.PostValidation.ValuesExcluded")));
			this.txtGenDateTime.PreValidation.CaseSensitive = ((bool)(resources.GetObject("txtGenDateTime.PreValidation.CaseSensitive")));
			this.txtGenDateTime.PreValidation.ErrorMessage = resources.GetString("txtGenDateTime.PreValidation.ErrorMessage");
			this.txtGenDateTime.PreValidation.Inherit = ((C1.Win.C1Input.PreValidationInheritFlags)(resources.GetObject("txtGenDateTime.PreValidation.Inherit")));
			this.txtGenDateTime.PreValidation.ItemSeparator = resources.GetString("txtGenDateTime.PreValidation.ItemSeparator");
			this.txtGenDateTime.PreValidation.PatternString = resources.GetString("txtGenDateTime.PreValidation.PatternString");
			this.txtGenDateTime.PreValidation.RegexOptions = ((C1.Win.C1Input.RegexOptionFlags)(resources.GetObject("txtGenDateTime.PreValidation.RegexOptions")));
			this.txtGenDateTime.PreValidation.TrimEnd = ((bool)(resources.GetObject("txtGenDateTime.PreValidation.TrimEnd")));
			this.txtGenDateTime.PreValidation.TrimStart = ((bool)(resources.GetObject("txtGenDateTime.PreValidation.TrimStart")));
			this.txtGenDateTime.PreValidation.Validation = ((C1.Win.C1Input.PreValidationTypeEnum)(resources.GetObject("txtGenDateTime.PreValidation.Validation")));
			this.txtGenDateTime.ReadOnly = true;
			this.txtGenDateTime.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("txtGenDateTime.RightToLeft")));
			this.txtGenDateTime.ShowFocusRectangle = ((bool)(resources.GetObject("txtGenDateTime.ShowFocusRectangle")));
			this.txtGenDateTime.Size = ((System.Drawing.Size)(resources.GetObject("txtGenDateTime.Size")));
			this.txtGenDateTime.TabIndex = ((int)(resources.GetObject("txtGenDateTime.TabIndex")));
			this.txtGenDateTime.Tag = ((object)(resources.GetObject("txtGenDateTime.Tag")));
			this.txtGenDateTime.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("txtGenDateTime.TextAlign")));
			this.txtGenDateTime.TrimEnd = ((bool)(resources.GetObject("txtGenDateTime.TrimEnd")));
			this.txtGenDateTime.TrimStart = ((bool)(resources.GetObject("txtGenDateTime.TrimStart")));
			this.txtGenDateTime.UserCultureOverride = ((bool)(resources.GetObject("txtGenDateTime.UserCultureOverride")));
			this.txtGenDateTime.Value = ((object)(resources.GetObject("txtGenDateTime.Value")));
			this.txtGenDateTime.VerticalAlign = ((C1.Win.C1Input.VerticalAlignEnum)(resources.GetObject("txtGenDateTime.VerticalAlign")));
			this.txtGenDateTime.Visible = ((bool)(resources.GetObject("txtGenDateTime.Visible")));
			this.txtGenDateTime.VisibleButtons = ((C1.Win.C1Input.DropDownControlButtonFlags)(resources.GetObject("txtGenDateTime.VisibleButtons")));
			// 
			// lblGroupBy
			// 
			this.lblGroupBy.AccessibleDescription = resources.GetString("lblGroupBy.AccessibleDescription");
			this.lblGroupBy.AccessibleName = resources.GetString("lblGroupBy.AccessibleName");
			this.lblGroupBy.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("lblGroupBy.Anchor")));
			this.lblGroupBy.AutoSize = ((bool)(resources.GetObject("lblGroupBy.AutoSize")));
			this.lblGroupBy.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("lblGroupBy.Dock")));
			this.lblGroupBy.Enabled = ((bool)(resources.GetObject("lblGroupBy.Enabled")));
			this.lblGroupBy.Font = ((System.Drawing.Font)(resources.GetObject("lblGroupBy.Font")));
			this.lblGroupBy.Image = ((System.Drawing.Image)(resources.GetObject("lblGroupBy.Image")));
			this.lblGroupBy.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblGroupBy.ImageAlign")));
			this.lblGroupBy.ImageIndex = ((int)(resources.GetObject("lblGroupBy.ImageIndex")));
			this.lblGroupBy.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("lblGroupBy.ImeMode")));
			this.lblGroupBy.Location = ((System.Drawing.Point)(resources.GetObject("lblGroupBy.Location")));
			this.lblGroupBy.Name = "lblGroupBy";
			this.lblGroupBy.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("lblGroupBy.RightToLeft")));
			this.lblGroupBy.Size = ((System.Drawing.Size)(resources.GetObject("lblGroupBy.Size")));
			this.lblGroupBy.TabIndex = ((int)(resources.GetObject("lblGroupBy.TabIndex")));
			this.lblGroupBy.Text = resources.GetString("lblGroupBy.Text");
			this.lblGroupBy.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("lblGroupBy.TextAlign")));
			this.lblGroupBy.Visible = ((bool)(resources.GetObject("lblGroupBy.Visible")));
			this.lblGroupBy.Click += new System.EventHandler(this.lblGroupBy_Click);
			// 
			// cboGroupBy
			// 
			this.cboGroupBy.AccessibleDescription = resources.GetString("cboGroupBy.AccessibleDescription");
			this.cboGroupBy.AccessibleName = resources.GetString("cboGroupBy.AccessibleName");
			this.cboGroupBy.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("cboGroupBy.Anchor")));
			this.cboGroupBy.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("cboGroupBy.BackgroundImage")));
			this.cboGroupBy.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("cboGroupBy.Dock")));
			this.cboGroupBy.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cboGroupBy.Enabled = ((bool)(resources.GetObject("cboGroupBy.Enabled")));
			this.cboGroupBy.Font = ((System.Drawing.Font)(resources.GetObject("cboGroupBy.Font")));
			this.cboGroupBy.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("cboGroupBy.ImeMode")));
			this.cboGroupBy.IntegralHeight = ((bool)(resources.GetObject("cboGroupBy.IntegralHeight")));
			this.cboGroupBy.ItemHeight = ((int)(resources.GetObject("cboGroupBy.ItemHeight")));
			this.cboGroupBy.Items.AddRange(new object[] {
															resources.GetString("cboGroupBy.Items"),
															resources.GetString("cboGroupBy.Items1")});
			this.cboGroupBy.Location = ((System.Drawing.Point)(resources.GetObject("cboGroupBy.Location")));
			this.cboGroupBy.MaxDropDownItems = ((int)(resources.GetObject("cboGroupBy.MaxDropDownItems")));
			this.cboGroupBy.MaxLength = ((int)(resources.GetObject("cboGroupBy.MaxLength")));
			this.cboGroupBy.Name = "cboGroupBy";
			this.cboGroupBy.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("cboGroupBy.RightToLeft")));
			this.cboGroupBy.Size = ((System.Drawing.Size)(resources.GetObject("cboGroupBy.Size")));
			this.cboGroupBy.TabIndex = ((int)(resources.GetObject("cboGroupBy.TabIndex")));
			this.cboGroupBy.Text = resources.GetString("cboGroupBy.Text");
			this.cboGroupBy.Visible = ((bool)(resources.GetObject("cboGroupBy.Visible")));
			// 
			// MPSCycleOption
			// 
			this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
			this.AccessibleName = resources.GetString("$this.AccessibleName");
			this.AutoScaleBaseSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScaleBaseSize")));
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
			this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.CancelButton = this.btnClose;
			this.ClientSize = ((System.Drawing.Size)(resources.GetObject("$this.ClientSize")));
			this.Controls.Add(this.cboGroupBy);
			this.Controls.Add(this.txtGenDateTime);
			this.Controls.Add(this.txtPlanHorizon);
			this.Controls.Add(this.lblPlanHorizon);
			this.Controls.Add(this.dtmToDate);
			this.Controls.Add(this.txtCycle);
			this.Controls.Add(this.txtCycleDecription);
			this.Controls.Add(this.dgrdData);
			this.Controls.Add(this.btnCycleSearch);
			this.Controls.Add(this.dtmFromDate);
			this.Controls.Add(this.cboCCN);
			this.Controls.Add(this.lblCCN);
			this.Controls.Add(this.btnEdit);
			this.Controls.Add(this.btnDelete);
			this.Controls.Add(this.btnSave);
			this.Controls.Add(this.btnAdd);
			this.Controls.Add(this.btnClose);
			this.Controls.Add(this.btnHelp);
			this.Controls.Add(this.btnPrint);
			this.Controls.Add(this.lblCycleDesc);
			this.Controls.Add(this.lblCycle);
			this.Controls.Add(this.lblMPSGenDate);
			this.Controls.Add(this.lblToDate);
			this.Controls.Add(this.lblFromDate);
			this.Controls.Add(this.lblGroupBy);
			this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
			this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.KeyPreview = true;
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.MaximizeBox = false;
			this.MaximumSize = ((System.Drawing.Size)(resources.GetObject("$this.MaximumSize")));
			this.MinimumSize = ((System.Drawing.Size)(resources.GetObject("$this.MinimumSize")));
			this.Name = "MPSCycleOption";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.StartPosition = ((System.Windows.Forms.FormStartPosition)(resources.GetObject("$this.StartPosition")));
			this.Text = resources.GetString("$this.Text");
			this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.MPSCycleOption_KeyDown);
			this.Closing += new System.ComponentModel.CancelEventHandler(this.MPSCycleOption_Closing);
			this.Load += new System.EventHandler(this.MPSCycleOption_Load);
			((System.ComponentModel.ISupportInitialize)(this.dgrdData)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.cboCCN)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmFromDate)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.dtmToDate)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.txtPlanHorizon)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.txtGenDateTime)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// MPSCycleOption_Load. 
		/// When user call form load with parameter is the MPSCycleOptionMasterID
		/// we need to load form with all value retrieve from database
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>
		/// - Tuesday, August 9 2005
		/// - August 12 2005 : DungLA
		/// </date>
		private void MPSCycleOption_Load(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".MPSCycleOption_Load()";
			try
			{
				//Set authorization for user
				Security objSecurity = new Security();
				this.Name = THIS;
				if(objSecurity.SetRightForUserOnForm(this, SystemProperty.UserName) == 0)
				{
					this.Close();
					// You don't have the right to view this item
					PCSMessageBox.Show(ErrorCode.MESSAGE_YOU_HAVE_NO_RIGHT_TO_VIEW ,MessageBoxIcon.Warning);
					return;
				}
				// Load combo box
				DataSet dstCCN = boUtil.ListCCN();
				cboCCN.DataSource = dstCCN.Tables[MST_CCNTable.TABLE_NAME];
				cboCCN.DisplayMember = MST_CCNTable.CODE_FLD;
				cboCCN.ValueMember = MST_CCNTable.CCNID_FLD;
				FormControlComponents.PutDataIntoC1ComboBox(cboCCN, dstCCN.Tables[MST_CCNTable.TABLE_NAME],MST_CCNTable.CODE_FLD,MST_CCNTable.CCNID_FLD,MST_CCNTable.TABLE_NAME);
				if (SystemProperty.CCNID != 0)
				{
					cboCCN.SelectedValue = SystemProperty.CCNID;
				}
				#region set default selected group by method - DungLA - Dec 13, 2005
				cboGroupBy.SelectedIndex = 0;
				#endregion
				//Store grid layout
				dtbGridLayOut = FormControlComponents.StoreGridLayout(dgrdData);
				//Switch form Mode
				formMode = EnumAction.Default;
				SwitchFormMode();
				//Set format for txtPlanHorizon
				txtPlanHorizon.FormatType = FormatTypeEnum.CustomFormat;
				txtPlanHorizon.CustomFormat = Constants.INTERGER_NUMBERFORMAT;
				//Set format for txtGenerateDate
				txtGenDateTime.FormatType = FormatTypeEnum.CustomFormat;
				txtGenDateTime.CustomFormat = Constants.DATETIME_FORMAT_HOUR;
				
				#region Load form with ID - DungLA - August 12, 2005

				// check if form load with parameter is Cycle option master ID
				if (pintCycleOptionMasterID > 0)
				{
					// get detail value and fill to grid
					FillDataGrid(pintCycleOptionMasterID);
					FormControlComponents.RestoreGridLayout(dgrdData, dtbGridLayOut);
					//Hack: Trada 15-11-2005
					btnEdit.Enabled = true;			
					btnDelete.Enabled = true;
					// END: Trada 15-11-2005
				}

				#endregion
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// ClearForm
		/// </summary>
		/// <author>Trada</author>
		/// <date>Tuesday, August 9 2005</date>
		private void ClearForm()
		{
			const string METHOD_NAME = THIS + ".ClearForm()";
			try
			{
				txtCycle.Text = string.Empty;
				txtCycleDecription.Text = string.Empty;
				txtGenDateTime.Value = null;
				dtmToDate.Value = null;
				dtmFromDate.Value = null;
				txtPlanHorizon.Value = null;
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
		}
		/// <summary>
		/// ConfigGrid
		/// </summary>
		/// <param name="pblnLock"></param>
		/// <author>Trada</author>
		/// <date>Wednesday, August 10 2005</date>
		private void ConfigGrid(bool pblnLock)
		{
			const string METHOD_NAME = THIS + ".ConfigGrid()";
			try
			{
				dgrdData.Enabled = true;
				for (int i =0; i <dgrdData.Splits[0].DisplayColumns.Count; i++)
				{
					dgrdData.Splits[0].DisplayColumns[i].Locked = true;
				}

                //dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.MASTERLOCATIONID_FLD].Locked = pblnLock;
				dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.ONHAND_FLD].Locked = pblnLock;
				dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.SAFETYSTOCK_FLD].Locked = pblnLock;
				dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.PURCHASEORDER_FLD].Locked = pblnLock;
				dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.SALEORDER_FLD].Locked = pblnLock;
				dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.SUPPLYWO_FLD].Locked = pblnLock;
				dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.DEMANDWO_FLD].Locked = pblnLock;
				dgrdData.Splits[0].DisplayColumns[MASTERLOCATIONCODE].Locked = pblnLock;
				
				//Set check boxes to all columns
				dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.ONHAND_FLD].DataColumn.ValueItems.Presentation  = C1.Win.C1TrueDBGrid.PresentationEnum.CheckBox;				
				dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.ONHAND_FLD].Style.HorizontalAlignment = AlignHorzEnum.Center;

				dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.SAFETYSTOCK_FLD].DataColumn.ValueItems.Presentation  = C1.Win.C1TrueDBGrid.PresentationEnum.CheckBox;
				dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.SAFETYSTOCK_FLD].Style.HorizontalAlignment = AlignHorzEnum.Center;

				dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.DEMANDWO_FLD].DataColumn.ValueItems.Presentation  = C1.Win.C1TrueDBGrid.PresentationEnum.CheckBox;
				dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.DEMANDWO_FLD].Style.HorizontalAlignment = AlignHorzEnum.Center;
				dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.PURCHASEORDER_FLD].DataColumn.ValueItems.Presentation  = C1.Win.C1TrueDBGrid.PresentationEnum.CheckBox;
				dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.PURCHASEORDER_FLD].Style.HorizontalAlignment = AlignHorzEnum.Center;
				dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.SALEORDER_FLD].DataColumn.ValueItems.Presentation  = C1.Win.C1TrueDBGrid.PresentationEnum.CheckBox;
				dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.SALEORDER_FLD].Style.HorizontalAlignment = AlignHorzEnum.Center;
				dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.SUPPLYWO_FLD].DataColumn.ValueItems.Presentation  = C1.Win.C1TrueDBGrid.PresentationEnum.CheckBox;
				dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.SUPPLYWO_FLD].Style.HorizontalAlignment = AlignHorzEnum.Center;

				if (!pblnLock)
				{
					dgrdData.Splits[0].DisplayColumns[MASTERLOCATIONCODE].Button = true;
				}				
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
		}
		/// <summary>
		/// SwitchFormMode
		/// </summary>
		/// <author>Trada</author>
		/// <date>Tuesday, August 9 2005</date>
		private void SwitchFormMode()
		{
			const string METHOD_NAME = THIS + ".SwitchFormMode()";
			try
			{
				switch (formMode)
				{
					case EnumAction.Default:
						txtCycleDecription.Enabled = false;
						txtGenDateTime.Enabled = false;
						dtmToDate.Enabled = false;
						if (pintCycleOptionMasterID > 0)
						{
							btnDelete.Enabled = true;
							btnEdit.Enabled = true;
						}
						else
						{
							btnDelete.Enabled = false;
							btnEdit.Enabled = false;
						}
						btnPrint.Enabled = false;
						btnSave.Enabled = false;
						btnEdit.Enabled = false;
						btnDelete.Enabled = false;
						btnCycleSearch.Enabled = true;
						dtmFromDate.Enabled = false;
						cboCCN.Enabled = false;
						cboGroupBy.Enabled = false;
						//Lock the grid
						ConfigGrid(true);	
						break;
					case EnumAction.Add:
						txtCycleDecription.Enabled = true;
						txtGenDateTime.Enabled = true;
						dtmToDate.Enabled = true;
						btnDelete.Enabled = false;
						btnEdit.Enabled = false;
						btnPrint.Enabled = true;
						btnSave.Enabled = true;
						btnCycleSearch.Enabled = false;
						dtmFromDate.Enabled = true;
						cboCCN.Enabled = false;
						cboGroupBy.Enabled = true;
						ConfigGrid(false);
						dgrdData.AllowDelete = true;
						break;
					case EnumAction.Edit:
						txtCycleDecription.Enabled = true;
						txtGenDateTime.Enabled = true;
						dtmToDate.Enabled = true;
						btnDelete.Enabled = false;
						btnEdit.Enabled = false;
						btnPrint.Enabled = true;
						btnSave.Enabled = true;
						btnCycleSearch.Enabled = false;
						btnAdd.Enabled = false;
						dtmFromDate.Enabled = true;
						cboCCN.Enabled = false;
						cboGroupBy.Enabled = true;
						ConfigGrid(false);
						dgrdData.AllowDelete = true;
						break;
				}
				
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
		}
		/// <summary>
		/// btnAdd_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Tuesday, August 9 2005</date>
		private void btnAdd_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnAdd_Click()";
			try
			{
				formMode = EnumAction.Add;
				ClearForm();
				SwitchFormMode();
				txtCycle.Focus();
				// Load PostDate
				MTR_MPSCycleOptionMasterVO voMTR_MPSCycleOptionMaster = new MTR_MPSCycleOptionMasterVO();
				voMTR_MPSCycleOptionMaster.AsOfDate = boUtil.GetDBDate();

				if((DateTime.MinValue < voMTR_MPSCycleOptionMaster.AsOfDate) && (voMTR_MPSCycleOptionMaster.AsOfDate < DateTime.MaxValue))
				{
					dtmFromDate.Value = voMTR_MPSCycleOptionMaster.AsOfDate;
				}
				else
				{
					dtmFromDate.Value = DBNull.Value;
				}

				//Disable Add button
				btnAdd.Enabled = false;
				//Fill data to controls
				CreateDataSet();
				dgrdData.DataSource = dstGridData.Tables[MTR_MPSCycleOptionDetailTable.TABLE_NAME];
				FormControlComponents.RestoreGridLayout(dgrdData, dtbGridLayOut);
				ConfigGrid(false);

			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// CreateDataSet
		/// </summary>
		/// <author>Trada</author>
		/// <date>Tuesday, August 9 2005</date>
		private void CreateDataSet()
		{
			const string METHOD_NAME = THIS + ".CreateDataSet()";
			try
			{
				dstGridData = new DataSet();
				dstGridData.Tables.Add(MTR_MPSCycleOptionDetailTable.TABLE_NAME);

				//insert columns which is invisible but use to update
				dstGridData.Tables[MTR_MPSCycleOptionDetailTable.TABLE_NAME].Columns.Add(MTR_MPSCycleOptionDetailTable.MPSCYCLEOPTIONDETAILID_FLD);
				dstGridData.Tables[MTR_MPSCycleOptionDetailTable.TABLE_NAME].Columns.Add(MTR_MPSCycleOptionDetailTable.MPSCYCLEOPTIONMASTERID_FLD);
				dstGridData.Tables[MTR_MPSCycleOptionDetailTable.TABLE_NAME].Columns.Add(MTR_MPSCycleOptionDetailTable.MASTERLOCATIONID_FLD);
				
				//insert display columns
				dstGridData.Tables[MTR_MPSCycleOptionDetailTable.TABLE_NAME].Columns.Add(MASTERLOCATIONCODE);
				dstGridData.Tables[MTR_MPSCycleOptionDetailTable.TABLE_NAME].Columns.Add(MTR_MPSCycleOptionDetailTable.ONHAND_FLD);
				dstGridData.Tables[MTR_MPSCycleOptionDetailTable.TABLE_NAME].Columns.Add(MTR_MPSCycleOptionDetailTable.SAFETYSTOCK_FLD);
				dstGridData.Tables[MTR_MPSCycleOptionDetailTable.TABLE_NAME].Columns.Add(MTR_MPSCycleOptionDetailTable.PURCHASEORDER_FLD);
				
				dstGridData.Tables[MTR_MPSCycleOptionDetailTable.TABLE_NAME].Columns.Add(MTR_MPSCycleOptionDetailTable.DEMANDWO_FLD);
				dstGridData.Tables[MTR_MPSCycleOptionDetailTable.TABLE_NAME].Columns.Add(MTR_MPSCycleOptionDetailTable.SUPPLYWO_FLD);
				dstGridData.Tables[MTR_MPSCycleOptionDetailTable.TABLE_NAME].Columns.Add(MTR_MPSCycleOptionDetailTable.SALEORDER_FLD);
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
		}
		/// <summary>
		/// btnSave_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Wednesday, August 10 2005</date>
		private void btnSave_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnSave_Click()";
			try
			{
				blnHasError = true;
				if (IsValidateData())
				{
					MPSCycleOptionBO boMPSCycleOption = new MPSCycleOptionBO();
					//Make a new MPSCycleOptionMasterVO
					MTR_MPSCycleOptionMasterVO voMTR_MPSCycleOptionMaster = new MTR_MPSCycleOptionMasterVO();
					voMTR_MPSCycleOptionMaster.CCNID = int.Parse(cboCCN.SelectedValue.ToString());
					voMTR_MPSCycleOptionMaster.AsOfDate = dtmDateOnly;
					voMTR_MPSCycleOptionMaster.Cycle = txtCycle.Text.Trim();
					voMTR_MPSCycleOptionMaster.Description = txtCycleDecription.Text.Trim();
					voMTR_MPSCycleOptionMaster.PlanHorizon = ((DateTime)dtmToDate.Value - dtmDateOnly).Days;
					// HACK: dungla 12-13-2005
					voMTR_MPSCycleOptionMaster.GroupBy = cboGroupBy.SelectedIndex;
					// END: dungla 12-13-2005
					//Add
					if (formMode == EnumAction.Add)
					{
						//Add this new VO to MTR_MPSCycleOptionMaster Table
						pintCycleOptionMasterID = boMPSCycleOption.Add(dstGridData, voMTR_MPSCycleOptionMaster);
						voMTR_MPSCycleOptionMaster.MPSCycleOptionMasterID = pintCycleOptionMasterID;
					}
					if (formMode == EnumAction.Edit)
					{
						voMTR_MPSCycleOptionMaster.MPSCycleOptionMasterID = pintCycleOptionMasterID;
						//Update MTR_MPSCycleOptionMaster and Detail
						boMPSCycleOption.UpdateMasterAndDetail(dstGridData, voMTR_MPSCycleOptionMaster);
					}
					PCSMessageBox.Show(ErrorCode.MESSAGE_AFTER_SAVE_DATA);
					//reload grid form database
					dstGridData = boMPSCycleOption.GetDetailByMasterID(pintCycleOptionMasterID);
					dgrdData.DataSource = dstGridData.Tables[0];
					FormControlComponents.RestoreGridLayout(dgrdData, dtbGridLayOut);
					formMode = EnumAction.Default;
					SwitchFormMode();
					dgrdData.AllowDelete = false;
					btnAdd.Enabled = true;
					btnEdit.Enabled = true;
					btnDelete.Enabled = true;	
					blnHasError = false;
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				//Check if ScrapNo was duplicated
				if (ex.mCode == ErrorCode.DUPLICATE_KEY)
				{
					txtCycle.Focus();
					txtCycle.Select();
				}
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// IsValidateData
		/// </summary>
		/// <author>Trada</author>
		/// <date>Wednesday, August 10 2005</date>
		private bool IsValidateData()
		{
			const string METHOD_NAME = THIS + ".IsValidateData()";
			try
			{
				//Check mandatory fields
				if (FormControlComponents.CheckMandatory(cboCCN))
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID);
					cboCCN.Focus();
					cboCCN.Select();
					return false;
				}
				if (FormControlComponents.CheckMandatory(txtCycle))
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID);
					txtCycle.Focus();
					txtCycle.Select();
					return false;
				}
				if (FormControlComponents.CheckMandatory(dtmFromDate))
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID);
					dtmFromDate.Focus();
					dtmFromDate.Select();
					return false;
				}
				if (FormControlComponents.CheckMandatory(dtmToDate))
				{
					PCSMessageBox.Show(ErrorCode.MANDATORY_INVALID);
					dtmToDate.Focus();
					dtmToDate.Select();
					return false;
				}
				//Check if To Date is smaller than From Date
				// HACK: Trada 23-11-2005
				dtmDateOnly = new DateTime(((DateTime)dtmFromDate.Value).Year, ((DateTime)dtmFromDate.Value).Month,((DateTime)dtmFromDate.Value).Day) ;
				if ((DateTime) dtmToDate.Value <= dtmDateOnly)
				{
					PCSMessageBox.Show(ErrorCode.MESSAGE_MP_PERIODDATE, MessageBoxIcon.Warning);
					dtmToDate.Focus();
					return false;
				} 

				 // END: Trada 23-11-2005
				//Check if Master Location rows are NOT unique, raise error message 
				for (int i = 0; i < dgrdData.RowCount; i++)
				{
					for (int j = i + 1; j < dgrdData.RowCount; j++)
					{
						if (dgrdData[i, MTR_MPSCycleOptionDetailTable.MASTERLOCATIONID_FLD].ToString().Trim() == dgrdData[j, MTR_MPSCycleOptionDetailTable.MASTERLOCATIONID_FLD].ToString().Trim())
						{
							PCSMessageBox.Show(ErrorCode.MESSAGE_MPS_CYCLE_OPTION_DUPLICATE_MASTERLOCATION);
							dgrdData.Row = i;
							dgrdData.Col = dgrdData.Splits[0].DisplayColumns.IndexOf(dgrdData.Splits[0].DisplayColumns[MASTERLOCATIONCODE]);
							dgrdData.Focus();
							return false;
						}
					}
				}
				//check if row in grid has data
				int intCountRow =0;
				for (int i =0; i < dgrdData.RowCount; i++)
				{
					if (dgrdData[i, MASTERLOCATIONCODE].ToString() != string.Empty)
					{
						intCountRow++;
					}
				}
				if (intCountRow ==0)
				{
					PCSMessageBox.Show(ErrorCode.MESSAGE_PO_APPROVE_NO_DATA_IN_GRID);
					dgrdData.Row = 0;
					dgrdData.Col = dgrdData.Splits[0].DisplayColumns.IndexOf(dgrdData.Splits[0].DisplayColumns[MASTERLOCATIONCODE]);
					dgrdData.Focus();
					return false;
				}
				//check mandatory field in grid
				for (int i =0; i < dgrdData.RowCount-1; i++)
				{
					//Check MasterLocation column
					if (dgrdData[i, MASTERLOCATIONCODE].ToString() == string.Empty)
					{
						PCSMessageBox.Show(ErrorCode.MESSAGE_MATERIALRECEIPT_SELECT_MASTERLOCATION, MessageBoxIcon.Error);
						dgrdData.Row = i;
						dgrdData.Col = dgrdData.Splits[0].DisplayColumns.IndexOf(dgrdData.Splits[0].DisplayColumns[MASTERLOCATIONCODE]);
						dgrdData.Focus();
						return false;
					}
				}
				return true;
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
		}
		/// <summary>
		/// btnEdit_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Wednesday, August 10 2005</date>
		private void btnEdit_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnEdit_Click()";
			try
			{
				//Switch form Mode
				formMode = EnumAction.Edit;
				SwitchFormMode();
				
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// btnDelete_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void btnDelete_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnDelete_Click()";
			try
			{
				const int DCP = 1;
				const int MRP = 2;
				const int DCPOPTION = 3;
				const string STR_DCP = "DCP";
				const string STR_DCPOPTION = "DCP Option";
				const string STR_MRP = "MRP";
				const string STR_MPS = "MPS";
				string[] strParam = new string[3];
				//Delete Detail and Master
				if (PCSMessageBox.Show(ErrorCode.MESSAGE_DELETE_RECORD, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
				{
					MPSCycleOptionBO boMPSCycleOption = new MPSCycleOptionBO();
					int intType = boMPSCycleOption.DeleteCycleOptionMasterAndDetail(pintCycleOptionMasterID, dstGridData);
					switch (intType)
					{
						case DCP:
							
							strParam[0] = STR_MPS;
							strParam[1] = STR_DCP;
							strParam[2] = STR_DCP;
							PCSMessageBox.Show(ErrorCode.MESSAGE_CYCLE_OPTION_ALREADY_USED, MessageBoxIcon.Error, strParam);
							break;
						case DCPOPTION:
							
							strParam[0] = STR_MPS;
							strParam[1] = STR_DCPOPTION;
							strParam[2] = STR_DCPOPTION;
							PCSMessageBox.Show(ErrorCode.MESSAGE_CYCLE_OPTION_ALREADY_USED, MessageBoxIcon.Error, strParam);
							break;
						case MRP:
							strParam[0] = STR_MPS;
							strParam[1] = STR_MRP;
							strParam[2] = STR_MRP;
							PCSMessageBox.Show(ErrorCode.MESSAGE_CYCLE_OPTION_ALREADY_USED, MessageBoxIcon.Error, strParam);
							break;
						case 0:
							PCSMessageBox.Show(ErrorCode.MESSAGE_AFTER_SAVE_DATA);
							formMode = EnumAction.Default;
							ClearForm();
							CreateDataSet();
							dgrdData.DataSource = dstGridData.Tables[MTR_MPSCycleOptionDetailTable.TABLE_NAME];
							FormControlComponents.RestoreGridLayout(dgrdData, dtbGridLayOut);
							//Lock the grid
							SwitchFormMode();
							txtCycle.Focus();		
							break;
					}
				}
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}

		private void btnPrint_Click(object sender, System.EventArgs e)
		{
		
		}

		private void btnHelp_Click(object sender, System.EventArgs e)
		{
		
		}

		/// <summary>
		/// btnClose_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Tuesday, August 9 2005</date>
		private void btnClose_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}
		/// <summary>
		/// MPSCycleOption_KeyDown
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Tuesday, August 9 2005</date>
		private void MPSCycleOption_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".MPSCycleOption_KeyDown()";
			try
			{
				#region HACK: DEL Trada 10-21-2005

//				if (e.KeyCode == Keys.Escape)
//				{
//					btnClose_Click(sender, e);
//				}

				#endregion END: DEL Trada 10-21-2005

				if (e.KeyCode == Keys.F12)
				{
					if((formMode == EnumAction.Edit) || (formMode == EnumAction.Add)) 
					{
						DataRow drowNew = dstGridData.Tables[MTR_MPSCycleOptionDetailTable.TABLE_NAME].NewRow();
						dstGridData.Tables[MTR_MPSCycleOptionDetailTable.TABLE_NAME].Rows.Add(drowNew);
						dgrdData.Row = dgrdData.RowCount - 2;
						dgrdData.Col = dgrdData.Columns.IndexOf(dgrdData.Columns[MASTERLOCATIONCODE]);
						dgrdData.Focus();
					}
					dgrdData.EditActive = false;
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// dgrdData_ButtonClick
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Wednesday, August 10 2005</date>
		private void dgrdData_ButtonClick(object sender, C1.Win.C1TrueDBGrid.ColEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_ButtonClick()";
			try
			{
				Hashtable htbCriteria = new Hashtable();
				DataRowView drwResult = null;
				if (!btnSave.Enabled) return;
				//open the search form to select Master Location
				if (dgrdData.Col == dgrdData.Columns.IndexOf(dgrdData.Columns[MASTERLOCATIONCODE]))
				{
					if (cboCCN.SelectedIndex != -1)
					{
						htbCriteria.Add(MST_MasterLocationTable.CCNID_FLD, cboCCN.SelectedValue);	
					}
					else //User has not selected CCN
					{
						htbCriteria.Add(MST_MasterLocationTable.CCNID_FLD, 0);
					}
					drwResult = FormControlComponents.OpenSearchForm(MST_MasterLocationTable.TABLE_NAME, MST_MasterLocationTable.CODE_FLD, dgrdData[dgrdData.Row, MASTERLOCATIONCODE].ToString(), htbCriteria, true);
					if (drwResult != null)
					{
						dgrdData.EditActive = true;
						int pintRow = dgrdData.Row;
						//dgrdData[pintRow, PRO_ComponentScrapDetailTable.LINE_FLD] = pintRow + 1;
						dgrdData[dgrdData.Row, MASTERLOCATIONCODE] = drwResult[MST_MasterLocationTable.CODE_FLD].ToString();
						if (dgrdData.Columns[MTR_MPSCycleOptionDetailTable.MASTERLOCATIONID_FLD].Text == string.Empty)
						{
							//Set false value for all check boxes
//							dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.ONHAND_FLD].DataColumn.Value = false;
//							dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.PURCHASEORDER_FLD].DataColumn.Value = false;
//							dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.SALEORDER_FLD].DataColumn.Value = false;
//							dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.SUPPLYWO_FLD].DataColumn.Value = false;
//							dgrdData.Splits[0].DisplayColumns[MTR_MPSCycleOptionDetailTable.DEMANDWO_FLD].DataColumn.Value = false;
							dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.ONHAND_FLD] = false;
							dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.SAFETYSTOCK_FLD] = false;
							dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.PURCHASEORDER_FLD] = false;
							dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.SALEORDER_FLD] = false;
							dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.SUPPLYWO_FLD] = false;
							dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.DEMANDWO_FLD] = false;
						}
						dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.MASTERLOCATIONID_FLD] = drwResult[MST_MasterLocationTable.MASTERLOCATIONID_FLD];
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// dgrdData_BeforeColUpdate
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Wednesday, August 10 2005</date>
		private void dgrdData_BeforeColUpdate(object sender, C1.Win.C1TrueDBGrid.BeforeColUpdateEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_BeforeColUpdate()";	
			try
			{
				Hashtable htbCriteria = new Hashtable();
				DataRowView drwResult = null;
				if (e.Column.DataColumn.DataField == MASTERLOCATIONCODE)
				{
					if (dgrdData.Columns[e.Column.DataColumn.DataField].Text.Trim() != string.Empty)
					{
						if (cboCCN.SelectedIndex != -1)
						{
							htbCriteria.Add(MST_MasterLocationTable.CCNID_FLD, cboCCN.SelectedValue);	
						}
						else //User has not selected CCN
						{
							htbCriteria.Add(MST_MasterLocationTable.CCNID_FLD, 0);
						}
						drwResult = FormControlComponents.OpenSearchForm(MST_MasterLocationTable.TABLE_NAME, MST_MasterLocationTable.CODE_FLD, dgrdData.Columns[e.Column.DataColumn.DataField].Text.Trim(), htbCriteria, false);
						if (drwResult != null)
						{
							e.Column.DataColumn.Tag = drwResult.Row;	
						}	
						else
						{
							e.Cancel = true;
						}
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}

		}
		/// <summary>
		/// dgrdData_AfterColUpdate
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Wednesday, August 10 2005</date>
		private void dgrdData_AfterColUpdate(object sender, C1.Win.C1TrueDBGrid.ColEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_AfterColUpdate()";
			try
			{
				DataRow drowResult = (DataRow) e.Column.DataColumn.Tag;
				//Fill Data to Master Location Column
				if (e.Column.DataColumn.DataField == MASTERLOCATIONCODE)
				{
					if ((e.Column.DataColumn.Tag == null) ||(dgrdData[dgrdData.Row, MASTERLOCATIONCODE].ToString() == string.Empty))
					{
						int row = dgrdData.Row;
						dgrdData[row, MTR_MPSCycleOptionDetailTable.MASTERLOCATIONID_FLD] = null;
						dgrdData[dgrdData.Row, MASTERLOCATIONCODE] = string.Empty;
					}
					else
					{
						dgrdData.EditActive = true;
						dgrdData[dgrdData.Row, MASTERLOCATIONCODE] = drowResult[MST_MasterLocationTable.CODE_FLD].ToString();
						if (dgrdData.Columns[MTR_MPSCycleOptionDetailTable.MASTERLOCATIONID_FLD].Text == string.Empty)
						{
							dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.ONHAND_FLD] = false;
							dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.SAFETYSTOCK_FLD] = false;
							dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.PURCHASEORDER_FLD] = false;
							dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.SALEORDER_FLD] = false;
							dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.SUPPLYWO_FLD] = false;
							dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.DEMANDWO_FLD] = false;
						}
						dgrdData[dgrdData.Row, MTR_MPSCycleOptionDetailTable.MASTERLOCATIONID_FLD] = drowResult[MST_MasterLocationTable.MASTERLOCATIONID_FLD];
						return;
					}
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}

		}
		/// <summary>
		/// FillDataGrid
		/// </summary>
		/// <param name="pintCycleOptionMasterID"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void FillDataGrid(int pintCycleOptionMasterID)
		{
			const string METHOD_NAME = THIS + ".FillDataGrid()";
			try
			{
				MPSCycleOptionBO boMPSCycleOption = new MPSCycleOptionBO();
				//Get data from CycleOptionMaster
				MTR_MPSCycleOptionMasterVO voMTR_MPSCycleOptionMaster = (MTR_MPSCycleOptionMasterVO) boMPSCycleOption.GetCycleOptionMaster(pintCycleOptionMasterID);
				//Fill Data to all controls
				txtCycle.Text = voMTR_MPSCycleOptionMaster.Cycle;
				txtCycle.Tag = voMTR_MPSCycleOptionMaster.MPSCycleOptionMasterID;
				cboCCN.SelectedValue = voMTR_MPSCycleOptionMaster.CCNID;
				if (voMTR_MPSCycleOptionMaster.Description != null)
				{
					txtCycleDecription.Text = voMTR_MPSCycleOptionMaster.Description;
				}
				else
					txtCycleDecription.Text = string.Empty;
				if ((voMTR_MPSCycleOptionMaster.MPSGenDate.ToString() != string.Empty) && (voMTR_MPSCycleOptionMaster.MPSGenDate != dtmSpecialDate))
				{
					txtGenDateTime.Value = voMTR_MPSCycleOptionMaster.MPSGenDate;
				}
				else
					txtGenDateTime.Value = null;
				int intPlanHorizon = 0;
				if (voMTR_MPSCycleOptionMaster.PlanHorizon != 0)
				{
					intPlanHorizon = voMTR_MPSCycleOptionMaster.PlanHorizon;
				}
				else 
					intPlanHorizon = 0;
				dtmFromDate.Value = voMTR_MPSCycleOptionMaster.AsOfDate;
				dtmToDate.Value = voMTR_MPSCycleOptionMaster.AsOfDate.AddDays(intPlanHorizon);
				// HACK: dungla 12-13-2005
				cboGroupBy.SelectedIndex = voMTR_MPSCycleOptionMaster.GroupBy;
				// END: dungla 12-13-2005
				//Get data from CycleOptionDetail Table by CycleOptionMasterID
				dstGridData = boMPSCycleOption.GetDetailByMasterID(pintCycleOptionMasterID);
				dgrdData.DataSource = dstGridData.Tables[0];
				//Lock grid
				for (int i =0; i <dgrdData.Splits[0].DisplayColumns.Count; i++)
				{
					dgrdData.Splits[0].DisplayColumns[i].Locked = true;
				}
			}
			catch (PCSException ex)
			{
				throw new PCSException(ex.mCode, METHOD_NAME, ex);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.Message, ex);
			}
		}
		/// <summary>
		/// btnCycleSearch_Click
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void btnCycleSearch_Click(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".btnCycleSearch_Click()";
			try 
			{
				Hashtable htbCriteria = new Hashtable();
				DataRowView drwResult = null;
				//User has selected CCN
				if (cboCCN.SelectedIndex != -1)
				{
					htbCriteria.Add(MTR_MPSCycleOptionMasterTable.CCNID_FLD, cboCCN.SelectedValue);	
				}
				else //User has not selected CCN
				{
					htbCriteria.Add(MTR_MPSCycleOptionMasterTable.CCNID_FLD, 0);
				}
				drwResult = FormControlComponents.OpenSearchForm(MTR_MPSCycleOptionMasterTable.TABLE_NAME, MTR_MPSCycleOptionMasterTable.CYCLE_FLD, txtCycle.Text.Trim(), htbCriteria, true);
				if (drwResult != null)
				{
					txtCycle.Text = drwResult[MTR_MPSCycleOptionMasterTable.CYCLE_FLD].ToString();
					//Keep valua of CycleOptionMasterID 
					txtCycle.Tag = drwResult[MTR_MPSCycleOptionMasterTable.MPSCYCLEOPTIONMASTERID_FLD];
					pintCycleOptionMasterID = int.Parse(txtCycle.Tag.ToString());
				}
				else
				{
					txtCycle.Focus();
					return;
				}
				FillDataGrid(pintCycleOptionMasterID);
				FormControlComponents.RestoreGridLayout(dgrdData, dtbGridLayOut);
				btnEdit.Enabled = true;			
				btnDelete.Enabled = true;
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// txtCycle_KeyDown
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void txtCycle_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtCycle_KeyDown()";
			if (!btnCycleSearch.Enabled)
			{
				return;
			}
			if (e.KeyCode == Keys.F4)
			{
				btnCycleSearch_Click(sender, e);	
			}
		}
		/// <summary>
		/// OnEnterControl
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void OnEnterControl(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".OnEnterControl()";
			try
			{
				FormControlComponents.OnEnterControl(sender, e);
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				// Displays the error message if throwed from system.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		//**************************************************************************              
		///    <Description>
		///       OnLeaveControl
		///    </Description>
		///    <Inputs>
		///    </Inputs>
		///    <Outputs>
		///    </Outputs>
		///    <Returns>
		///       void
		///    </Returns>
		///    <Authors>
		///       Dungla
		///    </Authors>
		///    <History>
		///       Tuesday, March 29, 2005
		///    </History>
		///    <Notes>
		///    </Notes>
		//**************************************************************************
		private void OnLeaveControl(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".OnLeaveControl()";
			try
			{
				FormControlComponents.OnLeaveControl(sender, e);
			}
			catch (PCSException ex)
			{
				// displays the error message.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// txtCycle_Leave
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void txtCycle_Leave(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".txtCycle_Leave()";
			try 
			{
				OnLeaveControl(sender, e);
				if (btnCycleSearch.Enabled)
				{
					if (!txtCycle.Modified) return;
					Hashtable htbCriteria = new Hashtable();
					DataRowView drwResult = null;
					//User has enter MasLoc
					if (cboCCN.SelectedIndex != -1)
					{
						htbCriteria.Add(MTR_MPSCycleOptionMasterTable.CCNID_FLD, cboCCN.SelectedValue);	
					}
					else //User has not selected CCN
					{
						htbCriteria.Add(MTR_MPSCycleOptionMasterTable.CCNID_FLD, 0);
					}
					if (txtCycle.Text != string.Empty)
					{
						drwResult = FormControlComponents.OpenSearchForm(MTR_MPSCycleOptionMasterTable.TABLE_NAME, MTR_MPSCycleOptionMasterTable.CYCLE_FLD, txtCycle.Text.Trim(), htbCriteria, false);
						if (drwResult != null)
						{
							txtCycle.Text = drwResult[MTR_MPSCycleOptionMasterTable.CYCLE_FLD].ToString();
							//Keep valua of CycleOptionMasterID 
							txtCycle.Tag = drwResult[MTR_MPSCycleOptionMasterTable.MPSCYCLEOPTIONMASTERID_FLD];
							pintCycleOptionMasterID = int.Parse(txtCycle.Tag.ToString());
						}
						else
						{
							txtCycle.Focus();
							return;
						}
						FillDataGrid(pintCycleOptionMasterID);
						FormControlComponents.RestoreGridLayout(dgrdData, dtbGridLayOut);
						btnEdit.Enabled = true;			
						btnDelete.Enabled = true;
					}
				}
			}
			catch (PCSException ex)
			{
				// Displays the error message if throwed from PCSException.
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					// Log error message into log file.
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					// Show message if logger has an error.
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex) 
			{
				// displays the error message.
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR,MessageBoxIcon.Error);
				// log message.
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION,MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// MPSCycleOption_Closing
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void MPSCycleOption_Closing(object sender, System.ComponentModel.CancelEventArgs e)
		{
			const string METHOD_NAME = THIS + ".MPSCycleOption_Closing()";
			try
			{
				if (formMode != EnumAction.Default)
				{
					DialogResult confirmDialog = PCSMessageBox.Show(ErrorCode.MESSAGE_QUESTION_STORE_INTO_DATABASE, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
					switch (confirmDialog)
					{
						case DialogResult.Yes:
							//Save before exit
							btnSave_Click(btnSave, new EventArgs());
							if (blnHasError)
							{
								e.Cancel = true;
							}
							break;
						case DialogResult.No:
							break;
						case DialogResult.Cancel:
							e.Cancel = true;
							break;
					}
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
		}
		/// <summary>
		/// dgrdData_KeyDown
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, August 11 2005</date>
		private void dgrdData_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			const string METHOD_NAME = THIS + ".dgrdData_KeyDown()";
			try
			{
				switch (e.KeyCode)
				{
					case Keys.F4:
						if (btnSave.Enabled)
						{
							dgrdData_ButtonClick(sender, null);
						}
						break;
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}

		}
		/// <summary>
		/// dtmToDate_TextChanged
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		/// <author>Trada</author>
		/// <date>Thursday, Nov 24 2005</date>
		private void dtmToDate_TextChanged(object sender, System.EventArgs e)
		{
			const string METHOD_NAME = THIS + ".dtmToDate_TextChanged()";
			try
			{
				
				if ((dtmFromDate.Value != null)&&(dtmToDate.Value != null)
					&&(dtmFromDate.Value != DBNull.Value)&&(dtmToDate.Value != DBNull.Value))
				{
					dtmDateOnly = new DateTime(((DateTime)dtmFromDate.Value).Year, ((DateTime)dtmFromDate.Value).Month,((DateTime)dtmFromDate.Value).Day) ;
					txtPlanHorizon.Value = ((DateTime)dtmToDate.Value - dtmDateOnly).Days;
				}
			}
			catch (PCSException ex)
			{
				PCSMessageBox.Show(ex.mCode, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex.CauseException, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			catch (Exception ex)
			{
				PCSMessageBox.Show(ErrorCode.OTHER_ERROR, MessageBoxIcon.Error);
				try
				{
					Logger.LogMessage(ex, METHOD_NAME, Level.ERROR);
				}
				catch
				{
					PCSMessageBox.Show(ErrorCode.LOG_EXCEPTION, MessageBoxIcon.Error);
				}
			}
			
		}

		private void lblPlanHorizon_Click(object sender, System.EventArgs e)
		{
		
		}

		private void lblGroupBy_Click(object sender, System.EventArgs e)
		{
		
		}
	}
}
